<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to set a series of strings as x-axis in QChart?]]></title><description><![CDATA[<p dir="auto">I have a series of strings in the x column, and corresponding values in the y column. I want to plot y versus x in a line chart, and I want each neighboring x labels has the same interval. How can I achieve this? Thank you.</p>
]]></description><link>https://forum.qt.io/topic/77375/how-to-set-a-series-of-strings-as-x-axis-in-qchart</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 03:06:49 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/77375.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Mar 2017 02:56:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set a series of strings as x-axis in QChart? on Mon, 20 Mar 2017 06:48:58 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much. I have solved my problem after read through the example.</p>
<p dir="auto">Actually, I should have three columns. the first column is just a series of sequential integer numbers, the second column stores the cateogories, which will be appeared as the x axis labels, and the third column stores y-axis values.  Then I create a QBarCategoryAxis, e.g. xAxis, then I append the xAxis with the categories column, and link the xAxis with my line series (i.e. setAxisX(xAxis, series).</p>
]]></description><link>https://forum.qt.io/post/382957</link><guid isPermaLink="true">https://forum.qt.io/post/382957</guid><dc:creator><![CDATA[Richard Lee]]></dc:creator><pubDate>Mon, 20 Mar 2017 06:48:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to set a series of strings as x-axis in QChart? on Mon, 20 Mar 2017 03:14:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richard-lee">@<bdi>Richard-Lee</bdi></a><br />
maybe <a href="http://doc.qt.io/qt-5/qtcharts-lineandbar-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">this example</a> meets your need.</p>
]]></description><link>https://forum.qt.io/post/382935</link><guid isPermaLink="true">https://forum.qt.io/post/382935</guid><dc:creator><![CDATA[Flotisable]]></dc:creator><pubDate>Mon, 20 Mar 2017 03:14:19 GMT</pubDate></item></channel></rss>