KB-25545: Creating bar charts in Elipse E3.

Question:

How can I create a bar chart in Elipse E3?

Solution:

To do so, you can choose one of the three possibilities listed below:

1 – You can set up E3Chart’s horizontal scale as numeric and the pen draw type as “Area”. To plot these points, use AddPoint method. Example:

set chart = Screen.Item("E3Chart1")
set pen1 = chart.Pens.Item("Pen1")      

'pen1.AddPoint x, y, quality
pen1.AddPoint 0, 0, 192
pen1.AddPoint 0, 20, 192
pen1.AddPoint 5, 20, 192
pen1.AddPoint 5, 0, 0

pen1.AddPoint 15, 0, 0
pen1.AddPoint 15, 50, 192
pen1.AddPoint 20, 50, 192
pen1.AddPoint 20, 0, 192

NOTE: you must disable the pen’s  “Show bad quality points” so a straight line isn’t plotted between bars.

2 – You can use the RMChart ActiveX.
3 – You can create the chart with Rectangle screen objects, as seen in this article.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *