In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "Qt how to compile map echart dynamic interaction", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Qt how to compile map echart dynamic interaction" bar!
I. Preface
Echart components have been used to do a variety of effects before, with the increase of a variety of field application field projects, various requirements are gradually increasing. In order to meet different types of needs, recently took the time to reorganize and encapsulate the echart class, mainly by adding a lot of js function processing, adding a variety of properties and interactions, such as clicking the corresponding flicker point to respond to the click event. Then the Qt side receives the event and carries on the corresponding processing. For example, each flicker point can be set to a different color and size, so that the distinction is clear. Of course, the premise of these is that echart has to support it. From the manual of the official website, the usage is still very detailed, the model framework is unified, and the naming of various attributes and functions is basically consistent. Maybe there is no corresponding processing in component A, you can see the corresponding demo in component B, and then if you apply this method directly to component A, you will be surprised to find that it is the same.
Echarts is an open source visualization library implemented by JavaScript, which can run smoothly on PC and mobile devices, and is compatible with most current browsers (IE8/9/10/11,Chrome,Firefox,Safari, etc.). The bottom layer relies on the lightweight vector graphics library ZRender to provide intuitive, interactive, highly customizable data visualization charts. Echarts provides conventional line chart, column chart, scatter chart, pie chart, K chart, box chart for statistics, map, heat map, line chart for geographic data visualization, relational data visualization, rising sun chart, parallel coordinates for multi-dimensional data visualization, funnel chart for BI, dashboard, and supports the mash-up between charts and charts.
II. Functional features
At the same time, support flicker point map, migration map, area map, world map, dashboard and so on.
You can set various colors such as title, prompt, background color, text color, line color, area color, and so on.
You can set the name, value, longitude and latitude collection of the city.
You can set the magnification of the map and whether the mouse wheel is allowed to zoom.
Built-in world map, national map, provincial map, regional map, can be accurate to the county, all maps are used offline.
Built-in provincial and municipal json data file to js file function, if there is a data update self-conversion, support a single file conversion and one-click conversion of all files.
Built-in function to obtain all the names and longitude and latitude information sets of the region from json files or js files, which can be used to display the information obtained by this method.
Depending on the browser component to display the map, the demo provided supports webkit/webengine/miniblink/ie to load web pages in many ways.
Using the miniblink browser kernel to get through the regret of the lack of browser modules in Qt5.6 and subsequent versions of the + mingw compiler, making the whole project support all Qt versions, testing any version from 4.7 to 5.15.
The points set by the flicker point migration chart and so on support setting the color separately.
Provides an interface to directly obtain the point-related information of the click, which is convenient for program linkage processing.
Strong expansibility, you can add a variety of exquisite echarts components according to the gourd painting ladle to make a great effect.
The built-in dashboard components provide interactive functionality, and the corresponding code is included in the demo demo.
The function interface is friendly and unified, and it is easy to use, just one class.
Support any Qt version, any system, any compiler.
Third, effect picture
4. Related code QString Echarts::newChartPoint () {if (! checkCount ()) {return ";} QStringList body; body
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.