- create a chart, here with lines.
- use dates for an axis
- use several data sets on a layer
- use gradients for background color
- handle mouse over for tracking
- how to dynamically draw a layer on top fo the chart
- how to do 2x resolution for support for HighDPI and Retina screens
- how to handle fonts and show text on linux
- how to format a label with custom font and formatting.
For Linux you may want to either change font names to the open source variants instead of Arial or you install ttf-mscorefonts-installer package. Than add a line in app.open:
You can point to any folder containing relevant font files for ChartDirector which you than can refer to by file name.
We updated several examples recently to use Paint event instead of drawing directly to the window. The referenced project here uses the paint event to draw the current chart. This chart is rendered in open event and stored in a property called pic. Than when mouse moves, the tracking of the mouse is handled, a new picture is generated and invalidate method is called to let the window redraw.
More coming soon in a XDevMag article.