Login Register

dojox.charting

Chart labels give JS errors in IE

I am using Dojo 1.1.0 trying to make a "Columns" chart. The chart works great in Firefox (2) but in IE 6 and 7 I get a JavaScript error and no chart. The error is:

'text' is null or not an object

I found out I can get the error to go away if I remove the chart labels. Below is the original code:


chart1.addAxis("Age", {labels: [{value: 1, text: "5-17"},
{value: 2, text: "18-21"},
{value: 3, text: "22-29"},
{value: 4, text: "30-39"},
{value: 5, text: "40-49"},
{value: 6, text: "50-64"},

Stroke shadow on line chart in Dojo 1.0.2

While trying the first charting sample from the blog entry A Beginner's Guide to Dojo Charting, Part 1 of 2, I found that with Dojo 1.0.2 (which I need to use for a particular task) the line on the graph displays with a shadow, even though none is specified in the code from the sample. Thinking that maybe a shadow was the default in Dojo 1.0.2, I added attribute settings to try and remove the shadow (or set its width to 0), but nothing seemed to work.

Chart markers...can they be an image shape?

I know that markers on a 2D chart can be defined as an SVG path segment to draw different shapes. Is there a way to use a small image as the marker, similarly to how you can create an image shape to add to a gfx surface?

Gantt Chart Example

Hi,

I'm new to dojo and need some pointers to help me get started on it. I'm specifically looking for examples on developing a simple Gantt Chart. I searched for some examples, I found just one example but it is based on dojo 0.4 and in dojo 1.0 there are lot of changes in the charting API. Even if somebody could guide me as to how I can implement this it would be really helpful. From what I have read so far it looks like I would need to write a Plotter for Gantt.

Thanks in advance for the help.

Sharoon

Charting Event Handling

Has anyone yet developed a work around for the dojox.charting package that will allow for clickable bars or points on the graphs that are generated? Our company would like to transition from static JFreeChart images to more dynamic dojo charts on our web interface, but this one feature is critical for us to be able to maintain curtain plotter functionality. If no one has a work around, does anyone in the dojo development community know when this feature might be introduced?

Gradient fill for bar/column charts

Hi! I'm finally getting to the point where I *should* be able to add gradient fills to some charts.
The gradient fill code is a bit dense, hwoever. I've tried to copy/paste some code from a gradient fill example in dojox.gfx, but that doesn't fly. I tried this;

var fillObj = {
colors: [
{ offset: 0, color: [255, 255, 0, 0] },
{ offset: 0.5, color: "orange" },
{ offset: 1, color: [255, 255, 0, 0] }
]
};

this.chart.addSeries(s, values, {
stroke: {
color: color
},

DojoX News: updates to charting and crypto, dojox.sketch, more.

Lots of things have been happening in DojoX lately, both big and small. I'll leave it to Pete and Adam to talk about some of the widget-based improvements that have been making their way into the codebase, but I'll talk real quick about some of the other things that have landed recently, and some upcoming things to look for.

Syndicate content