ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  compactline
Posted by seafree on Mar-03-2022 05:47
Attachments:
HI, please could you tell me how separate the labels Y from axis Y.

And move the chart to plotarea right.

Regards
seafree
Barchart_CompactLine.PNG

  Re: compactline
Posted by Peter Kwan on Mar-03-2022 17:06
Hi seafree,

Do you mean you want to put the y-axis on the right side. You can use XYChart.setYAxisOnRight. See:

https://www.advsofteng.com/doc/cdperl.htm#XYChart.setYAxisOnRight.htm

For example:

$c->setYAxisOnRight();

You can also put y-axis labels on both sides of the chart. An example is at:

https://www.advsofteng.com/doc/cdperl.htm#missingpoints.htm

Regards
Peter Kwan

  Re: compactline
Posted by seafree on Mar-03-2022 23:53
Thanks a lot Peter, you suggestion is correct, but I didn't explain me correctly, please sorry.

I really need to move the chart to rigth,  I had been change:

$c->setPlotArea(31, 21, 600, 372, 0xffffff);

To:

$c->setPlotArea(41, 21, 600, 372, 0xffffff)

And the result was ok. Thanks a lot.

Regards
seafree

  Re: compactline
Posted by seafree on Mar-08-2022 05:50
Attachments:
HI Peter, I had been modified the Compact  Line Chart but I couldn't show the chart, I got the data but I couldn't see the chart.

Please, could you help me?

Regards
seafree
chart_compactline.png
compactline.pl
compactline.pl

5.18 Kb

  Re: compactline
Posted by Peter Kwan on Mar-08-2022 18:26
Hi seafree,

In your code, both $chart1URL and $imageMap are undefined. So your code "getchart.pl?img=/tmp/tmpcharts/$chart1URL" would not work, as $chart1URL is undefined. Please make sure they are set to the URL and the image map of the chart.

The following is an example:

https://www.advsofteng.com/doc_v60/cdperl.htm#simpleclickable.htm

Note that in the above code, it sets the $chart1URL to point to the temporary filename and set the $imageMap to the image map of the chart:

# Create the image and save it in a temporary location
my $chart1URL = $c->makeTmpFile("/tmp/tmpcharts");

my $imageMap = $c->getHTMLImageMap("clickline.pl", "", "title='{xLabel}: US$ {value|0}M'");

Also, as explained in the above example, the chart is stored at /tmp/tmpcharts. You would need to make sure the directory exists and that you have read/write access to the directory.

Regards
Peter Kwan

  Re: compactline
Posted by seafree on Mar-10-2022 02:00
Sorry Peter but I don't understood. I couldn't see the chart.

  Re: compactline
Posted by seafree on Mar-10-2022 02:06
I did Peter, now I must modfy the y axis values.

I must show 24 values  for 24 hours.