<?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[I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes()]]></title><description><![CDATA[<p dir="auto">Hi Guys,<br />
I read the QValueAxis doc and also used createDefaultAxes()<br />
but I can't understand the QValueAxis usages and advantages over createDefaultAxes().</p>
<p dir="auto">If you have any thoughts about them please help me in understanding them with examples,<br />
Thanks in advance.</p>
]]></description><link>https://forum.qt.io/topic/94008/i-m-not-getting-qvalueaxis-and-chart-createdefaultaxes</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 18:14:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/94008.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Aug 2018 12:07:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Sat, 25 Aug 2018 08:04:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thippu">@<bdi>thippu</bdi></a> You can find many examples in <a href="https://doc.qt.io/qt-5/qtcharts-examples.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt Charts Examples</a> and some useful documentation in <a href="https://doc.qt.io/qt-5/qtcharts-overview.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt Charts Overview</a>.</p>
<p dir="auto">You can also find many tutorials by typing "qt charts" in Youtube.</p>
]]></description><link>https://forum.qt.io/post/478110</link><guid isPermaLink="true">https://forum.qt.io/post/478110</guid><dc:creator><![CDATA[Gojir4]]></dc:creator><pubDate>Sat, 25 Aug 2018 08:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Sat, 25 Aug 2018 07:42:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gojir4">@<bdi>Gojir4</bdi></a> I did increase the width. Before this I should understand the QValueAxis properly. Is there any video or documents with example</p>
]]></description><link>https://forum.qt.io/post/478107</link><guid isPermaLink="true">https://forum.qt.io/post/478107</guid><dc:creator><![CDATA[thippu]]></dc:creator><pubDate>Sat, 25 Aug 2018 07:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 14:15:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thippu">@<bdi>thippu</bdi></a> I don't think so, if they have same width you will only see the one which is at "front". Maybe try to increase the pen width of the one  which is at "back".<br />
I'm pretty sure that if you display different data in series2 you will see it.</p>
]]></description><link>https://forum.qt.io/post/478029</link><guid isPermaLink="true">https://forum.qt.io/post/478029</guid><dc:creator><![CDATA[Gojir4]]></dc:creator><pubDate>Fri, 24 Aug 2018 14:15:51 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 13:56:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gojir4">@<bdi>Gojir4</bdi></a> Yes, same data stream is given to the both but I have changed the QPen colors of them so we can see the changes through this think.</p>
]]></description><link>https://forum.qt.io/post/478023</link><guid isPermaLink="true">https://forum.qt.io/post/478023</guid><dc:creator><![CDATA[thippu]]></dc:creator><pubDate>Fri, 24 Aug 2018 13:56:02 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 13:20:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thippu">@<bdi>thippu</bdi></a> said in <a href="/post/478003">I'm not getting QValueAxis and chart-&gt;createDefaultAxes()</a>:</p>
<blockquote>
<p dir="auto">both series objects are connected to same data source</p>
</blockquote>
<p dir="auto">Does that mean that both series display the same data ?<br />
In this case maybe you see only one series in your chart because serires2 is hidden under series1 ?</p>
]]></description><link>https://forum.qt.io/post/478014</link><guid isPermaLink="true">https://forum.qt.io/post/478014</guid><dc:creator><![CDATA[Gojir4]]></dc:creator><pubDate>Fri, 24 Aug 2018 13:20:15 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 13:18:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thippu">@<bdi>thippu</bdi></a> Sorry. Anyway that's the same in C++</p>
]]></description><link>https://forum.qt.io/post/478012</link><guid isPermaLink="true">https://forum.qt.io/post/478012</guid><dc:creator><![CDATA[Gojir4]]></dc:creator><pubDate>Fri, 24 Aug 2018 13:18:18 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 13:13:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gojir4">@<bdi>Gojir4</bdi></a> okay, thanks for the reply I'm using c++</p>
]]></description><link>https://forum.qt.io/post/478011</link><guid isPermaLink="true">https://forum.qt.io/post/478011</guid><dc:creator><![CDATA[thippu]]></dc:creator><pubDate>Fri, 24 Aug 2018 13:13:03 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 12:53:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thippu">@<bdi>thippu</bdi></a> `<br />
Let's say clarify my doubt<br />
code:</p>
<pre><code>// I have defined QChart object 
QValueAxis *AxisX=new QValueAxis;
axisX-&gt;setRange(0,2000);
axisX-&gt;setLableFormat("%g");
axisX-&gt;setTitleText("Samplees");

QValuesAxis *axisY=new QValueAxis;
axisY-&gt;setRange(-1,1);
axisY-&gt;setTitleText("Audio level");


chart-&gt;setAxisX(axisX,series);
chart-&gt;setAxisY(axisY,series);
chart-&gt;setAxisX(axisX,series2);
chart-&gt;setAxisY(axisY,series2);



// I have two dynamic QLineSeries objs those are series and series2 have defined them and now I want to plot them on the chart, In this series2 is not getting plotted on the chart, there is no lose or empty data on the series2, both series objects are connected to same data source,
//chart is displaying only series object data.

</code></pre>
<p dir="auto">So, Is there any mistakes in the setAxes to the chart?</p>
]]></description><link>https://forum.qt.io/post/478003</link><guid isPermaLink="true">https://forum.qt.io/post/478003</guid><dc:creator><![CDATA[thippu]]></dc:creator><pubDate>Fri, 24 Aug 2018 12:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to I&#x27;m not getting QValueAxis and chart-&gt;createDefaultAxes() on Fri, 24 Aug 2018 12:50:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thippu">@<bdi>thippu</bdi></a> Hi,</p>
<p dir="auto">The advantage of QValueAxis is that you can customize the axis according to your need, by changing font, colors, tick count, (see also AbstractAxis properties), etc... But usually createDefaultAxes() will make the job.</p>
<p dir="auto">Personnaly I have used it only to make the font smaller for displaying on Mobile.</p>
<p dir="auto">Here is a simple example:</p>
<pre><code> ChartView{
    //...    
    LineSeries {
        //...
        axisY: ValueAxis{
            labelsFont.pointSize: 8
            color: "blue"
            labelsAngle: 20
        }
    }
 }
</code></pre>
]]></description><link>https://forum.qt.io/post/478000</link><guid isPermaLink="true">https://forum.qt.io/post/478000</guid><dc:creator><![CDATA[Gojir4]]></dc:creator><pubDate>Fri, 24 Aug 2018 12:50:41 GMT</pubDate></item></channel></rss>