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

Message ListMessage List     Post MessagePost Message

  How to Export Plot to Image file by adding some titles
Posted by John on May-02-2013 20:39
Hi,

How can I export the plot  to jpeg or png  file by adding some text on the graph.


Thanks,
John.

  Re: How to Export Plot to Image file by adding some titles
Posted by Peter Kwan on May-03-2013 00:20
Hi John,

You may use BaseChart.makeChart to create charts as image files. If you would like to add a title or some text in the chart before outputting the chart as an image file, you may use BaseChart.addTitle or BaseChart.addText.

For example, in C#:

.... create chart as usual .....

c.addTitle("My Title");
c.makeChart("c:\\\\test.png");

Hope this can help.

Regards
Peter Kwan

  Re: How to Export Plot to Image file by adding some titles
Posted by John on May-03-2013 14:37
Hi Peter Kwan,

Thaks for your reply.

How can i add editable text to my plot area ?

I want to make my titles visible on plot area and i should be able to edit them.

John.

  Re: How to Export Plot to Image file by adding some titles
Posted by John on May-03-2013 14:38
Hi Peter Kwan,



Thaks for your reply.

How can I add editable text to my plot area ?

I want to make my titles visible on plot area and I should be able to edit them.



John.

  Re: How to Export Plot to Image file by adding some titles
Posted by Peter Kwan on May-04-2013 04:40
Hi John,

If you want to edit text, you may use the facilities of your GUI framework. Many GUI frameworks include a "TextBox" that allows people to edit text. For example, in .NET Windows Forms, you may use System.Windows.Forms.TextBox, while in HTML, you may use the <INPUT> element.

To put the text visible on the plot area, you may put the "TextBox" on top of the chart object.

In many user interface designs, the text is part of the chart (eg. added using BaseChart.addText). When the user clicks on the text, the program will put a "TextBox" on top of the text, so the user can edit the text. After the user has finished editing the text, the "TextBox" is hidden, and the chart is redrawn with the modified text.

Note that ChartDirector only draws the chart according to your data. If editing the data is necessary, the developer would need to develop the necessary user interface. For example, in case of editing a text, it could be a TextBox in a Form that allows the user to enter the text, or you may put the TextBox on the chart itself. After the data is modified, you may redraw the chart with the modified data.

Hope this can help.

Regards
Peter Kwan