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.