Announcement

Collapse
No announcement yet.

CanvasJS support (charting library)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    CanvasJS support (charting library)

    I would like to share my work on fully supporting the CanvasJS library with Bridge.NET. The Bridge.CanvasJS repository is available at github with an examples project as well.

    UPDATE
    Nuget package is also available: Install-Package Bridge.CanvasJS

    Here is a code sample:

    var chart = new CanvasJS.Chart("columnChart", new ChartOptions
    {
        Title = new ChartTitle { Text = "Fruit Sales" },
        InteractivityEnabled = false,
        Data = new ChartDataSeries[]
        {
            new ChartDataSeries
            {
                Type = ChartType.Column,
                DataPoints = new ChartDataPoint[]
                {
                    new ChartDataPoint { Label = "Apple", Y = 10 },
                    new ChartDataPoint { Label = "Orange", Y = 15 },
                    new ChartDataPoint { Label = "Banana", Y = 25 },
                    new ChartDataPoint { Label = "Mango", Y = 30 },
                    new ChartDataPoint { Label = "Grape", Y = 28 }
                }
            }
        }
    });
    
    chart.Render();
    Happy coding
    Last edited by zaid94; 2016-06-27 @ 01:45 PM.

    #2
    Hi zaid94,

    Wow, thanks for sharing this. Looks really good.

    Can you assign a license to the project by adding a LICENSE file to the repository root?

    We use the Apache 2 license for the Bridge compiler, see https://github.com/bridgedotnet/Brid...master/LICENSE.

    Comment


      #3
      Thanks geoffrey.mcgill I have added the the license. I will also create a Nuget package as soon as possible!

      Comment

      Working...
      X