Chart Examples

I could not find an example to use Charts. Can someone point me to some sample code

namespace GHIElectronics.TinyCLR.UI.Controls
{
    public class Chart : Image, IDisposable
    {
        public enum ChartMode
        {
            LineMode,
            RectangleMode
        }

        public class DataItem
        {
            public double Value { get; set; }

            public string Name { get; set; }
        }

image

I am thinking this is the issue to use the Chart

image

You cannot get the chart bitmap directly.

The Chart is an element, you should add to Canvas or Panel, UI will show/update the elements.

The way to add to canvas or panel is similar to Button or other elements.

Let us know if any issue then.

It is added to a canvas, that is where I see this issue

if you added to canvas then you don;t need bitmap, if you don’t need bitmap then what issue?

I see only issue there because you wanted Bitmap directly, and it is private.

I wanted to save the bitmap to a file

We can public that function in next release.

Thank you, looking forward to that

While waiting for the release, how about using Reflection?