javascriptdojodojox.charting

How to get dojox.charting labels on irregular (eg. 31, 28, 31... so on) values?


I'm trying to use dojox.charting to output a simple graph of monthly data.

For now, I want it to display one point per day in each month, for a duration of a year. This I have working.

The problem with this is: I can't find a way to add chart labels for each month.

I want "January" at 0, "February" at 31, "March" at 59 and so on.

As far as I can tell, dojox.charting only supports having labels on regular values, eg. 30, 60, 90 and so on.

Is there some way I can easily do this, or is changing dojo's code required?

Please see this jsfiddle for example: http://jsfiddle.net/svjrz/


Solution

  • dojox.charting does not support timeseries yet.

    When I need to present irregular data (like monthly), usually I interpolate daily data to present on monthly scale with regular ticks (Jan, Feb, and so on) as a line/area chart (you can try splines there). And I switch to weekly/daily view when user drills down.

    Yes, it is more work, yet the result is exactly what I want, rather then "what's available".