Login Register

Chart

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"},

What might cause charts to fail under IE7?

For some reason, at least on my main development machine the charts (pulled from SVN revision 14583) do not work on my machine under IE7. They appear fine under Firefox 3.

The problem is pretty obvious - it happens even when loading the chart tests (e.g. test_chart2d.html). While space appears to be reserved for the charts, they never become visible.

I'm guessing this isn't a widespread problem, since others seem to be using charts with IE7. Can anyone suggest what might be strange about my configuration which is preventing correct operation?

Regards,
Richard

chart not rendering in programmatically created tab, which links to another page with setHref()

I creating a web page which displays charts, in tabs.

The tabs are created programmatically when a button is pressed.

I just create a tab and set the href to a page which is where the chart is created.

this is how I create the tab:-

javascript function in head of page 1

var node1=document.createElement("div");

var devel = new dijit.layout.ContentPane({id:"develTab",closable:"true",position:"relative",refreshOnShow:"true",title:"development overview"},node1);
devel.setHref("developmentoverview.jsp");
var tabCont = dijit.byId("tabs");

Can a Chart2D have a "hole" of data?

Hi all!

We would like to use dojox.chart for graphing our monitoring graph, and I'm currently analyzing how we could use it.

Basically, I would like to know if we can have some "hole" of data within a single series in a Chart2D graph.
"hole" mean: no data, so the line can be broken at some point, and continue later on.

ex: 1, 1.5, 2.2, 12.4, -1, -1, -1, 2.3, 5.9, -1, -1, -1, 7.2

Using current chart implementation, all '-1' data won't be graphed, BUT there will be a vertical line between 12.4 and 0, then between 0 and 2.3, and again between 5.9 and 0, and 0 to 7.2.

Chart label bug of FF

Hello,

When I make chart with custom korean label at the FF, the label doesn't show correctly.
the label letter shows vertically not horizontally.

But IE works no problem.

Thanks,

Youngho

Chart and Event

Hello,

Can I attach some events on the chart, for example onmouseover, onclick etc.. ?

Thanks,

Youngho

Bar Chart - different formatting(color) for each bar.

Hi,
I have a requirement for Bar chart where every bar of the chart is of a unique color. How can I achieve this? Can I create a theme for the same? Is it already available?

instead of

chart18.addSeries("Series A", [29, 21, 13, 44, 57], {stroke: {color: "red"}, fill: "lightpink", plot: "myBarPlot"});

I wrote

chart18.addSeries("Series A", [29, 0, 0, 0, 0], {stroke: {color: "red"}, fill: "lightpink", plot: "myBarPlot"});
chart18.addSeries("Series B", [0, 21, 0, 0, 0], {stroke: {color: "green"}, fill: "lime", plot: "myBarPlot"});

Column of Column chart as hyperLinks

Hi All,
Is it possible to create a chart where in the Bars for the chart act as hyperlinks? Assume I have a chart representing marks of 5 students. I want the user to be able to click on the bar representing the student and get redirected to the student details page. Please advise. Thanks in advance.

Regards,
Yazad Khambata

Clickable Chart

I want to create a chart that can be clicked in certain regions of the bars or line. Is this possible?

Chart Legend

Hi,
I would like to add a chart legend. Is this possible? I can't find any in the sample.

Syndicate content