.netwpfwindowslivecharts

How to add per point tooltips in LiveCharts? How to have different colours for points on the same line?


I find LiveCharts very useful for what I'm doing. There are two open questions for me at the moment. Using WPF.

  1. I have a line series with individual points referring to some data of interest to the end user. I want the user to put the tip of the mouse over a point and see some custom data. I couldn't figure out how to do that from the examples on github.

  2. I would like also to have different colours for different data points.

Any help?


Solution

    1. You can easily create your own tooltip. I wrote this article about it: http://lvcharts.net/#/examples/v1/tooltips-wpf?path=WPF-Components-Tooltip

      Basically, the idea is that you build your custom control and assign it to the DataToolTip property.

      I have an example on GitHub: https://github.com/Live-Charts/Live-Charts

      The result is:

    2. There is no way to do this yet. Please consider opening a new issue requesting this feature.