<div dir="ltr">Thanks! Realised that there was an extra "s" that needed to be removed at the end of the import. Got the Bar chart example working based on the one in the Qt C++ <a href="http://doc.qt.io/qt-5/qtcharts-barchart-example.html">documentation</a>. However the axis legend doesn't appear. Below is the function that creates the QChart which is used in the QChartView:<div><br></div><div>===================================================</div><div><div>def create_bar_chart(self):</div><div> set0 = QBarSet('Jane')</div><div> set1 = QBarSet('John')</div><div> series = QBarSeries()</div><div> chart = QChart()</div><div> axis = QBarCategoryAxis()</div><div> categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']</div><div> </div><div> set0.append([1, 2, 3, 4, 5, 6])</div><div> set1.append([5, 0, 0, 4, 0, 7])</div><div> series.append(set0)</div><div> series.append(set1)</div><div> chart.addSeries(series)</div><div> axis.append(categories)</div><div> </div><div> chart.setTitle('Simple barchart example')</div><div> chart.createDefaultAxes()</div><div> chart.setAxisX(axis, series)</div><div> chart.legend().setAlignment(Qt.AlignBottom)</div><div> return chart</div></div><div><div>===================================================</div><div><br class="inbox-inbox-Apple-interchange-newline"></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 25 Aug 2016 at 19:37 Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 25 Aug 2016, at 12:02 am, Nick <<a href="mailto:napperley@gmail.com" target="_blank">napperley@gmail.com</a>> wrote:<br>
><br>
> Been trying to find documentation on PyQt Chart (for PyQt 5.7) but it doesn't exist. There is mention of PyQt Chart examples but they don't appear to exist anywhere. What is the name of the PyQt Chart module? Tried to import PyQt Chart but to no avail.<br>
><br>
> In need of a good PyQt Chart example for displaying a basic Bar chart (including the import line for PyQt Chart).<br>
<br>
The examples are in the source package. The module name is PyQt5.QtChart.<br>
<br>
Phil</blockquote></div>