Ahmed SEDDIK
Ahmed SEDDIK

Reputation: 181

How to include more data on Series on Highcharts

I'm using Highcharts under C# .NET I want to include more data to include and show them on Series.

All classes of Series (ColumnSeriesData, PieSeriesData... limit us to a number of a specific fields bellow:

    public string ClassName { get; set; }
    public string Color { get; set; }
    public double? ColorIndex { get; set; }
    public Hashtable CustomFields { get; set; }
    public PieSeriesDataLabels DataLabels { get; set; }
    public string Description { get; set; }
    public PieSeriesDataDragDrop DragDrop { get; set; }
    public string Drilldown { get; set; }
    public PieSeriesDataEvents Events { get; set; }
    public string Id { get; set; }
    public double? Labelrank { get; set; }
    public double? LegendIndex { get; set; }
    public string Name { get; set; }
    public bool? Selected { get; set; }
    public bool? Sliced { get; set; }
    public double? Y { get; set; }

How can i add a personalised field ?

Upvotes: 0

Views: 146

Answers (1)

magdalena
magdalena

Reputation: 3695

Yes, each class in Highcharts.NET or Highstock.NET contains the CustomFields property where you can define fields that will later be thrown in JS. It should be added in pairs: property name and value.

API example: https://dotnet.highcharts.com/Help/Highcharts/html/class_highsoft_1_1_web_1_1_mvc_1_1_charts_1_1_spline_series.html#a911f05a5827c3d33cc5dceb79bb55b24

Upvotes: 1

Related Questions