I wasn't sure if stackoverflow or here would be best to ask, but picked this place.
I'm really enjoying dimple.js, but I'm wondering how to change the legend labels so that they're not the ones defined in the json/tsv?
I've noticed that the shapes are null until the chart is drawn, so I can only change the text myself after. I also know through the following code I can get to the text and change it myself:
var legendLabels = globLegend.shapes.selectAll("text"); // by then going through the array, first element is text and has innerHTML associated which I want to change
But of course if the text is too big, the legend won't adjust. Is there a way to change it without altering the json data?
Hello,
I wasn't sure if stackoverflow or here would be best to ask, but picked this place.
I'm really enjoying dimple.js, but I'm wondering how to change the legend labels so that they're not the ones defined in the json/tsv?
I've noticed that the shapes are null until the chart is drawn, so I can only change the text myself after. I also know through the following code I can get to the text and change it myself: var legendLabels = globLegend.shapes.selectAll("text"); // by then going through the array, first element is text and has innerHTML associated which I want to change
But of course if the text is too big, the legend won't adjust. Is there a way to change it without altering the json data?