Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to 'fillToValue' in Jqplot when we have null values for some x-axis ticks
    text
    copied!<p>I am trying to use <code>fillToValue</code> property for jQplot series to fill that series to a particular value.</p> <p>I am using this function to create an array of series:</p> <pre><code>/** * This function populates the graphSeries array to contain the different properties of each series. * * @param {string} Yaxis: which Y axis to use(yaxis or y2axis) * @param {string} Color: Color code for the graph line * @param {string} MarkerColor: Color of the marker for each point on the graph * @param {string} Style: Shape of the marker(star, diamond, etc) * @param {string} Label: Text value of the series, which would appear on the legend also. */ function seriesCreation(Yaxis, Color, MarkerColor, Style, Label, Show){ graphSeries.push({ yaxis : Yaxis, shadow : true, shadowAngle: 45, shadowOffset : 2.25, color : Color, label : Label, breakOnNull : true, markerOptions: { show: true, size: 12.0, color: MarkerColor, style: Style }, show: true, fill: Show, fillToZero : true, fillToValue : 1 }); } </code></pre> <p>This works fine if i have an array of values without any <code>null</code> values in them, but if i have array with <code>null</code> values then its doesn't fill with color nor draws the line.</p> <p>Example: chartData1 works fine but chartData2 doesn't work(doesn't fills up with color nor the lines shows up)</p> <pre><code>var chartData1 = [["19-Jan-2012", 2.61], ["20-Jan-2012", 5.00], ["21-Jan-2012", 6.00], ["22-Jan-2012", 3.00], ["23-Jan-2012", 8.00], ["24-Jan-2012", 1.00]]; var chartData2 = [["19-Jan-2012", null], ["20-Jan-2012", null], ["21-Jan-2012", 6.00], ["22-Jan-2012", 3.00], ["23-Jan-2012", 8.00], ["24-Jan-2012", null]]; </code></pre> <p>Does anyone knows how to do this?? I think this concept may be of use to a lot people using <code>jqplot</code>.</p>
 

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