当前位置:主页 > 资料 >

Bridging the gap between low-level and high-level JavaScript
栏目分类:资料   发布日期:2018-08-03   浏览次数:

导读:本文为去找网小编(www.7zhao.net)为您推荐的Bridging the gap between low-level and high-level JavaScript Chart libraries.,希望对您有所帮助,谢谢! ApexCharts — Open-Source JavaScript Chartlibrary is a free and open

本文为去找网小编(www.7zhao.net)为您推荐的Bridging the gap between low-level and high-level JavaScript Chart libraries.,希望对您有所帮助,谢谢!

内容来自www.7zhao.net



ApexCharts — Open-Source JavaScript Chart library

is a free and open-source modern charting library that helps developers to create interactive visualizations for web pages. It is developed to bridge the gap between low-level and high-level chart libraries. www.7zhao.net

But, Why the need for another chart library?

Granted, there are dozens of chart libraries including the commercial ones which have evolved heavily in the last decade. Many of them are simply amazing, but costly to use for a simple dashboard. Many of them are just bloated trying to do everything but fails to do one thing perfectly. ApexCharts attempts to pick good things from these high-level libraries and provide one with a simple approach. It doesn’t try to be a “one size fits all” solution, but rather a proposal to provide in-built common charts which are used on web dashboards. 内容来自www.7zhao.net

So, what problem does ApexCharts solves?

We will compare ApexCharts with existing open-source high-level, declarative chart solutions and not a low-level chart framework (d3.js).

本文来自去找www.7zhao.net

1. Easier zooming, panning & scrolling

Many open-source chart libraries don’t support this highly interactive feature out of the box. Some do provide this as add-on but I haven’t seen a smoother experience in them. ApexCharts places good amount of importance to the zooming/scrolling and allows multiple options to traverse the data in the chart. 去找(www.7zhao.net欢迎您

2. Placing annotations

Informative labels along with lines placed over specific values on y-axis and/or x-axis can be incredibly helpful to interpret charts easily. ApexCharts has finite control over the placements of the annotations including font-size/color/border of the labels and line. 内容来自www.7zhao.net

3. Triggering events on user’s actions to provide additional data in callbacks

The true meaning of interactivity is — combining multiple charts and passing information one to other. This is achieved by triggering events on several actions and returning the new data in the callback functions — the new data then can be used to modify the data of other charts. This way we have unlimited possibilities to create charts based on other charts.

本文来自去找www.7zhao.net

4. Truly responsive

Responsiveness in charts isn’t just resizing the whole chart and make it equal to screen size, but allow to provide multiple configs for different screen sizes. ApexCharts has an intuitive way to override default config with another config based on viewport width. 内容来自www.7zhao.net

5. A way to customize nearly every element

Don’t just limit your charts with plain colors in the primary elements. Give colors, gradients, shadows, patterns, images to your chart components and customize to fit your design needs. You can even customize the SVG element through css as each element is given a unique class name. copyright www.7zhao.net

6. Sparklines

Utilize sparkLines to indicate trends in data, for example, occasional increments or declines, monetary cycles, or to feature most extreme and least values. www.7zhao.net

7. Heatmaps

Use Heatmaps to represent data through colors and shades. Frequently used with bigger data collections, they are valuable for recognizing patterns and area of focus.

去找(www.7zhao.net欢迎您

8. Cool Gauges that enhances Dashboards

The tiny gauges are an important part of a dashboard and are useful in displaying single series data. 去找(www.7zhao.net欢迎您

Any Dependency?

ApexCharts has a dependency on , a battle-tested SVG library. Without re-inventing the wheel in this area, we leverage the full power of SVG.js. All the graphics/drawing work, animations, filtering, etc is lifted by the SVG.js library.

copyright www.7zhao.net

ApexCharts on

copyright www.7zhao.net

www.7zhao.net


本文原文地址:https://medium.com/@juned.chhipa/bridging-the-gap-between-low-level-and-high-level-charting-libraries-a8f6c1819ba5

以上为Bridging the gap between low-level and high-level JavaScript Chart libraries.文章的全部内容,若您也有好的文章,欢迎与我们分享!

本文来自去找www.7zhao.net

Copyright ©2008-2017去找网版权所有   皖ICP备12002049号-2 皖公网安备 34088102000435号   关于我们|联系我们| 免责声明|友情链接|网站地图|手机版