Hi folks,<div><br></div><div>I would like to set the X-Axis of a vtkQtLineChartView to correspond to the X-Coordinate of a point while my Y-Axis corresponds to the scalar point data at that point. </div><div><br></div><div>
I&#39;ve tried doing </div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkQtChartAxis *axis = internals-&gt;lineChart-&gt;GetAxis(vtkQtChartAxis::Bottom);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkQtChartAxisModel *axisModel = axis-&gt;getModel();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>axisModel-&gt;removeAllLabels();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>axisModel-&gt;addLabel(QVariant((float)1500));</div>
<div>        ...</div><div><br></div><div>but it still ended up starting at 1.</div></div><div><br></div><div>Attached is a screenshot of what I have now, how can I set the X-Axis to refer to the data&#39;s X-coordinate value instead of just an index that starts at 1?</div>
<div><br></div><div><br></div>