We are using Webcharts (7.0.2) in a large government website
and there are a few issues with Webcharts we are having -
management are talking about using another charting tool unless we
can get these rectified. We are presenting scientific data in
various formats, but mostly line and bar charts.
The issues are:
1. If you use a symbol on the chart for marking points (eg a
star shape) the legend always uses a square, not the same shape. Is
it possible for the legend to display the shape that’s on the
chart? Eg
http://www.drewbytes.com.au/images/chart3.gif
should have circles in the legend not squares.
2. Let’s say a data range is 0 -250. When drawing lines
on the chart, if they go close to zero Webcharts extends the Y axis
value to -50 (in this case) rather than leaving at zero. We have
tried forcing Webcharts to use a minimum value of 0 on Y axis, but
we can’t get it to work. See image here for an example:
http://www.drewbytes.com.au/images/chart1.gif
3. We want to colour a portion of the background of the chart
in some situations to signify a certain period of data. The only
way we can see to do this is set a column that’s drawn first
with the range of values in the chart. But there in lies the
problem – as Webcharts decides the min/max values
dynamically, how do we know what the maximum value is to set our
column with so that it covers the entire height of the chart?
Again, we’ve tried telling Webcharts to use a max value for
the Y axis but it doesn’t seem to work. Eg in
http://www.drewbytes.com.au/images/chart2.gif
we want the yellow bar to go right to the top of the chart.
4. Is there a way to display financial years on a chart, eg
“03/04” rather than just “2004” ? The chart
has to be displayed in “DateTimePattern” format as not
every year has a data entry and if it’s not in
DateTimePattern format then the chart won’t draw the scale
correctly when there are missing years.
Does any one have any ideas on any of the above? Any help
appreciated.
We call Webcharts via Java, eg:
oMyWebChart =
createObject("Java","com.gp.api.jsp.MxServerComponent");
oMyApp = getPageContext().getServletContext();
oSvr = oMyWebChart.getDefaultInstance(oMyApp);
oMyChart2 = oSvr.newImageSpec();
oMyChart2.width = this.chartXSize;
oMyChart2.height= this.chartYSize;
oMyChart2.type = this.chartType;
oMyChart2.style = this.chartStyle;
oMyChart2.model = this.sChartModel;