![]() Both take usage of points configuration setting the configuration accordingly to the passed list of values. Therefore, it was decided to make usage of points configuration concept and to implement just two methods – colorBy() and sizeBy(). ![]() To do so, we would need to make significant changes to the API that would require a lot of work. That is the case when you have not only X and Y values, but also Z and you want to for example make a heat map on which points have various colors. Some users of Qt Charts module requested to have a possibility to adjust colors and sizes of points by the third dimension. Ability to adjust colors and sizes of points in QXYSeries by passed values ![]() With this feature you can customize not only the label visibility of specified points, but also their size, color and visibility. It simplifies developers lives as they do not need to fill data into two separate series anymore. The screenshot above shows the effect that we can achieve using points configuration feature and a single series. Of course you can clear the configuration anytime. You can set configuration of a separate point or multiple points in a bunch. You can execute a method like setPointConfiguration() on the instance of QXYSeries derived class (like QLineSeries, QSplineSeries or QScatterSeries) to customize the look of a separate point. How does it work now? Among Qt Charts changes in Qt 6.2 there is a concept of points configuration. Then you would need to call setPointLabelsVisible() accordingly. Following the old approach you needed to create two series where one of them would include only points with labels and the other one only points without labels. Imagine that you wanted to have a more customized look of your charts, for instance you may wanted to display points labels only above some of them. To remind, series are sets of points to draw a line between them and/or individual points. Previously to customize the look of individual points or points that should be drawn you needed to create multiple separate series. Ability to customize the look of individual points in a series in QXYSeries The full list of Qt Charts changes in Qt 6.2 can be found in official release notes. ![]() We’re not going to explain all of the changes like minor changes, documentation changes or new demos. In this blog post we’re going to describe only the changes made to the module in Qt 6.2. The Qt Charts module was restored in Qt 6.1 in the form it was in last versions of Qt 5. Also Qt employees’ (especially maintainer’s) patience during reviewing deserves a huge appreciation. Of course number of commits is not the best indicator as some of commits are results of joint work and commits differ from each other. The bar chart above shows number of commits per email domain since 2008 except commits from the Qt company employees. Many of those changes were implemented by Scythe Studio Qt developers, and a bit accidentally we became a significant contributor to the Qt Charts module. ![]() The newest, long term support (LTS) version of the Qt framework is Qt 6.2 and this version includes most of the changes and improvements. The Qt Charts module is available in the Qt framework already for quite long time, but the framework itself constantly evolves and it’s being improved all the time, so there were changes made to this framework as well. The Qt Charts module provides the possibility to display various types of charts in order to visualize data.This module included in the Qt framework, is quite popular as it is possible to use components from this module while working on UI based on either Qt Widgets or Qml. The look and feeling of those charts is almost the same regardless of the selected way of UI implementation as it is based on Qt Graphics View Framework. ![]()
0 Comments
Leave a Reply. |