Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd additional data to point using DotNet.Highcharts
    primarykey
    data
    text
    <p>I am learning how to use HighCharts with Visual Studio. I am using DotNet.Highcharts to hopfully make it easier. I have a series with the y value of totalAttempts which is and integer and the x value of DateTime. The series is a spline chart. I would like to add additional data. </p> <p>How can I add additional data to each point using DotNet.Highcharts?</p> <p><strong>UPDATE</strong></p> <p>I have a Series List that I use to add all of the needed Series to:</p> <pre><code>List&lt;Series&gt; mySeries = new List&lt;Series&gt;(); </code></pre> <p>I use an array list to hold each of the data points needed </p> <pre><code>var myResults = new List&lt;object[]&gt;(); </code></pre> <p>Then I loop through the results of a query several time to gather the data for each point of a Series. Here is the code I use:</p> <pre><code>myResults.Add(new object[] { detailRecords.groupedDate, //represents x detailRecords.totalAttempts //represents y }); </code></pre> <p>Then after the data points are all created, I then add the array list as the data for a Series</p> <pre><code>mySeries.Add(new Series { Name = mainRecords.name, Data = new Data(myResults.ToArray()) }); </code></pre> <p>What I don't know how to do is add additional information to the data points so I can display it when it is hovered over. The question <a href="https://stackoverflow.com/questions/8514457/set-additional-data-to-highcharts-series">Set Additional Data to highcharts series</a> shows how to do this but I can't seem to get it working with DotNet.Highcharts.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload