Hello,
I've a stacked area chart, that is filled with dynamic data via JSON. The chart shows data according to start and end date, which the user selects from two datepickers.
On the category axis I try to put as much labels (rotated by -90° date values) as possible without mixing labels.
To calculate the appropriate Labels.Step() I need to know two things
1. number of values on category axis (wich I know)
2.) the current width of the chart or the chart area (which I don't know)
to calculate - or better estimate - the max number of labels
I found the width in the svg property of the chart, but don't know how to extract from that text.
Is there another way to determine the charts width or a totally different approach to estimate max number of labels on the category axis?
Thanks in advance
Dirk
I've a stacked area chart, that is filled with dynamic data via JSON. The chart shows data according to start and end date, which the user selects from two datepickers.
On the category axis I try to put as much labels (rotated by -90° date values) as possible without mixing labels.
To calculate the appropriate Labels.Step() I need to know two things
1. number of values on category axis (wich I know)
2.) the current width of the chart or the chart area (which I don't know)
to calculate - or better estimate - the max number of labels
I found the width in the svg property of the chart, but don't know how to extract from that text.
Is there another way to determine the charts width or a totally different approach to estimate max number of labels on the category axis?
Thanks in advance
Dirk