Note that there are some explanatory texts on larger screens.

plurals
  1. PODojo chart won't display after addSeries
    primarykey
    data
    text
    <p>I am trying to create a chart in dojo. The issue is, as soon as I try and add any data to the chart, the chart renders blank (no errors).</p> <p>Code:</p> <pre><code>var cPosition require(["dojox/charting/Chart","dojox/charting/themes/Claro", "dojox/charting/plot2d/Grid", "dojox/charting/axis2d/Default", "dojox/charting/plot2d/MarkersOnly",], function(Chart, theme, Grid, Default, MarkersOnly){ cPosition = new Chart("chartPosition"); cPosition.setTheme(theme); cPosition.addAxis("x", { min: -180, max: 180, majorTicks: true, majorTick: {length:180}, minorTick:{length:5}, majorTickStep:180, minorTickStep:20 }); cPosition.addAxis("y", { min: -180, max: 180, vertical: true, majorTicks: true, majorTick: {length:180}, minorTick: {length:5}, majorTickStep:180, minorTickStep:20 }); cPosition.addPlot("Grid", { type: Grid, hMajorLines: true, hMinorLines: true, vMajorLines: true, vMinorLines: true, majorHLine: { color: "black", width: 2 }, majorVLine: { color: "black", width: 2 }, minorHLine: { color: "grey", width: 1 }, minorVLine: { color: "grey", width: 1 }, enableCache: true }); cPosition.addPlot("default", { type: MarkersOnly }); //cPosition.addSeries("series_markers", [{x:10,y:10}]); cPosition.render(); }); </code></pre> <p>If I uncomment the line:</p> <pre><code>cPosition.addSeries("series_markers", [{x:10,y:10}]); </code></pre> <p>The chart turns blank (absolutely nothing on it). If I comment the line, the grid displays correctly but, of course, no data.</p> <p>What I am trying to accomplish is create an x,y grid that will display a marker that corresponds to the position of an object.</p>
    singulars
    1. This table or related slice is empty.
    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.
    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