Login Register

DataBar Charts Overlapping

[EDIT: Moving this over to the DojoX forum; this is an old 0.4 thread that seems to have been resurrected and now applies to the 1.0 charting engine.]

 Hi,

I have a graph where I am trying to display several series of data but when the chart renders all the bars appear on top of each other for each point in the XAxis and they appear very thin. Is there a way to put these bars side by side and make them wider?

Thanks,

F

Need a little more info...

Going to need a little bit more information than that...are you using the Charting engine?  If so, exactly which plotter are you using, and (preferably) do you have a link we can look at?  When I wrote the bar chart plotters, they *all* should be auto-calculating width (which makes for interesting label problems), so the only answer I can quickly surmise is that you have a lot of data that is not displaying based on the range of your Y axis.

A link would help a lot.

DataBar Charts Overlapping (Solution)

Hi ttrenka,

Thanks for your quick reply. Actually I found a way to solve my problem. I did it by modifying the attributes (Firefox) and style (IE) of the bars to make them wider and move the position in the X Axis.

Something like...
var lineWidth = attNodes[j].attributes.width;
lineWidth.value = "5"

Here's a sample of the graph...

Graph

It worked out pretty good.

Thanks.

printing text inside the graph

I want to print the text inside the graph ?. Can you suggest me,
How can I do that ?. To display a legend, Is there any possible to superimpose gfx + graph ? .

Thanks,
kulls

Use regular HTML techniques

Use regular HTML techniques — put your text or your legend in an absolutely positioned element (e.g., div) and superimpose it on top of the chart.