Skip to main content

All Questions

Tagged with
2 votes
3 answers
4k views

How to change text color of legend in d3js graph?

Title; I'm following this tutorial on a stacked bar chart. I have a black background and wanted to change the color of the legend to white. I have already done so with the axis, but can't seem to ...
numWhile's user avatar
1 vote
1 answer
2k views

Add a static/definite legend in D3JS graph

I have a D3JS scatter plot, whose data source is a MYSQL request. Basically data points are (x, y, category) and category can be (A,B,C,D,E). Sometimes, there is no point in MySQL Select request whose ...
Vincent's user avatar
  • 1,574
3 votes
1 answer
4k views

How can I update my graph legend in d3.js?

I'm trying to update my legend in d3.js whenever the data changes. My jsfiddle is supposed to update the legend whenever the key set gets changed. The keyset changes whenever different data is put ...
Grammin's user avatar
  • 12.1k