# Problems with chart axis

**URL:** <https://forum.inductiveautomation.com/t/problems-with-chart-axis/1123>\
**Category:** Archived Topics\
**Created:** [April 30, 2009, 5:07pm UTC](https://forum.inductiveautomation.com/t/problems-with-chart-axis/1123 "2009-04-30T17:07:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 30, 2009, 5:07pm UTC](https://forum.inductiveautomation.com/t/problems-with-chart-axis/1123/1 "2009-04-30T17:07:01Z")

</div>

I have a chart with the following dataset.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/eb8f00a36b0530803388b0fa05bd4e42dd95363f.JPG)  

when it tries to graph I receive these two errors.

![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/94abfd5dca4a0fa1c2167d311cd0294bfee5c714.JPG)

![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/093bfb5e101ecb70e84de50f2979268d2c126445.JPG)

so i then change my x axis to a number axis and i receive this error.

java.lang.IllegalArgumentException: Illegal type for X value: class java.lang.String (column ‘ColID’)  
at com.inductiveautomation.factorypmi.application.components.chart.runtime.XYNumericDataSet.getXValue(XYNumericDataSet.java:182)  
at org.jfree.data.general.DatasetUtilities.iterateDomainBounds(DatasetUtilities.java:699)  
at org.jfree.data.general.DatasetUtilities.findDomainBounds(DatasetUtilities.java:642)  
at org.jfree.chart.renderer.xy.AbstractXYItemRenderer.findDomainBounds(AbstractXYItemRenderer.java:721)  
at org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:4048)  
at org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:426)  
at org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:409)  
at org.jfree.chart.plot.XYPlot.setDomainAxis(XYPlot.java:759)  
at org.jfree.chart.plot.XYPlot.setDomainAxis(XYPlot.java:736)  
at com.inductiveautomation.factorypmi.application.components.PMIChart.createXYChart(PMIChart.java:684)  
at com.inductiveautomation.factorypmi.application.components.PMIChart.createChartImpl(PMIChart.java:481)  
at com.inductiveautomation.factorypmi.application.components.chart.PMILineChartPanel.createChart(PMILineChartPanel.java:115)  
at com.inductiveautomation.factorypmi.designer.property.customizers.ChartCustomizer.tryCommit…

so it does not like being a category axis or a number axis. what is going on?

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 30, 2009, 5:13pm UTC](https://forum.inductiveautomation.com/t/problems-with-chart-axis/1123/2 "2009-04-30T17:13:50Z")

</div>

nevermind figured it out. forgot to change the properties of the chart. not in the chart customizer but in the component properties. needed to change the chart type to category chart and then the extract order to by row.
