Title: Blazing Charts
Author: Massoud Shakeri
Published: <strong>2015 年 9 月 2 日</strong>
Last modified: 2018 年 3 月 23 日

---

搜索插件

![](https://ps.w.org/blazing-charts/assets/banner-772x250.png?rev=1236814)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/blazing-charts/assets/icon-256x256.png?rev=1236567)

# Blazing Charts

 作者：[Massoud Shakeri](https://profiles.wordpress.org/massoudshakeri/)

[下载](https://downloads.wordpress.org/plugin/blazing-charts.1.0.6.zip)

 * [详情](https://cn.wordpress.org/plugins/blazing-charts/#description)
 * [评价](https://cn.wordpress.org/plugins/blazing-charts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/blazing-charts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/blazing-charts/#developers)

 [支持](https://wordpress.org/support/plugin/blazing-charts/)

## 描述

We are not going to re-invent the wheel, and this plugin is not going to give you
another charting library. This purpose of this plugin is to let you get the most
out of charting libraries that already exist and are awesome. There are many of 
them out there, and most of them are free. Many of the other commercial libraries
are free for a personal or non-profit project, or have a free branded version, which
may have a small link to their website.

Here is a list of libraries currently added to the collection. If you know another
charting library, compatible with GPL license, please inform us to add it.

 * HighCharts.js: The library used (disabled by default) is a free version with 
   a small link to their website, and can be used if the user’s site opts in to 
   link. This plugin does NOT substitute HighCharts terms of use. HighCharts use
   is free for a personal or non-profit project under the Creative Commons Attribution-
   NonCommercial 3.0 License.
   Please refer to HighCharts license page http://shop.
   highsoft.com/highcharts.html to check the HighCharts precise license conditions.
 * Morris.js
 * ZingChart: The library used (disabled by default) is a free branded version, 
   and can be used if the user’s site opts in to link. This plugin does NOT substitute
   ZingChart terms of use.
   Please refer to ZingChart license page https://www.zingchart.
   com/buy/details/branded-license/ to check the ZingChart precise license conditions.
 * Chart.js
 * Google Charts: by loading Google’s JSAPI library loader remotely (as a service),
   and then using it to load the visualization library and other packages
 * D3.js
 * Chartist.js
 * Smoothie Charts
 * Flot Charts

Please refer to the license page of a library you want to use to check the precise
license conditions.

#### What does this plugin do?

This plugin allows you to create chart code snippets, which can be inserted into
the posts or pages by using the shortcode of “BlazingChart”.

Another scenario is you have a function, defined in another plugin or in your theme,
which extracts data from database and produces the scripts for the chart. Then you
can give the name of that function as a parameter to the shortcode, so the function
is called and the output of that function will be inserted in the page.
 The “BlazingChart”
shortcode can have up to 4 parameters:

 1. “charttype”:
     The first parameter of that shortcode tells which Charting library
    you want to use. At the moment the value of this parameter can be one of these:

 * highcharts: for HighCharts.js
 * morris: for Morris.js
 * zingchart: for ZingChart
 * chartjs: for Chart.js
 * google: for Google Charts
 * d3: for D3.js
 * chartist: for Chartist.js
 * smoothie: Smoothie Charts
 * flot: for Flot library

Other than Google Charts which does not have a local version of library, all the
other libraries are included in this plugin. Some of them are hosted on a CDN as
well. So by changing the settings, you can easily switch between remote or local
chart/map libraries.

 1. “source”:
     The second parameter specifies the user-friendly slug of the chart snippet
    as the source of script and data for the chart.
 2. “function”:
     If a function, defined in another plugin or in the theme, is going
    to produce the data and script for the chart, the name of that function can be 
    given as the value of this parameter. This value can be not only a function name,
    but also other types of callbacks, like “Foo::method”, “array(‘Foo’, ‘method’)”,
    or “array($obj, ‘method’)”.
 3. “options”:
     Some of the charting libraries are just a single file. But others, 
    like Flot, are divided to a main library and several auxiliary libraries, to make
    it lighter and more efficient. By using this parameter, you can give a comma separated
    list of auxiliary libraries of the main library to load. Here is the list of options
    for each library:

 * HighCharts.js: more, 3d, exporting
 * D3.js : pie, nvd3
 * Chart.js : bundle
 * Flot Charts : colorhelpers, canvas, categories, crosshair, errorbars, fillbetween,
   image, navigate, pie, resize, selection, stack, symbol, threshold, time

#### How Charting libraries are used?

To include JavaScript files efficiently, none of these libraries are enqueued, until
the shortcode of “BlazingChart” appears in a post or a widget. The plugin loads 
only one of these libraries, specified by “charttype” parameter. Moreover, to load
the page faster, that library is loaded in the footer.

You can also use a built-in PHP function to invoke the chart anywhere in your template:

<?php
 // define the parameters $patts= array( “charttype” => “name of one of the
aforementioned charting libraries”, “source” => “slug of the chart snippet”, “options”
=> “auxiliary libraries to load” ); // call the function to invoke the shortcode
handler blazing_charts_insert($patts); ?>

As always, there are exceptions:

To reduce the size of the libraries loaded for Google Charts, that library decides
which portions of the library to be included, depending to the type of the chart.
So the link to the CDN library must be included at the top of the script, saved 
in the chart snippet.

#### How To use this plugin:

 1. Although theoretically you can have various charts in a single page, drawn by more
    than one charting library, it is advisable not to do that. These libraries may 
    conflict with each other, and may not get any of the charts drawn properly. Just
    make sure in every page, only one of those libraries is included.
 2. Every chart has two major parts: first a container, specified by a <div> or <canvas
    > tag, with a certain id or class; and second a script which tells how that chart
    should be drawn.
 3. If you have more than one chart in a single page, make sure each chart, saved as
    a Chart Snippet or produced by a function, has a unique id or class for its container.
    Otherwise there will be a conflict between those charts.
 4. Shortcodes are case-sensitive. So if you want to use the shortcode of [BlazingChart],
    please make sure to type it correctly.

#### 比如

I tried to bring some examples about each of the libraries, in this plugin’s URI:

http://blazingspider.com/wp-demo

#### 程序文档

The detailed and updated version of documentation can be found in this link:

http://blazingspider.com/plugins/blazing-charts

## 屏幕截图

[⌊Where to find plugins' Settings page.⌉⌊Where to find plugins' Settings page.⌉[

Where to find plugins’ Settings page.

[⌊Chart Snippets Post Type, which conatain HTML, javascripts, and styles for each
chart or map.⌉⌊Chart Snippets Post Type, which conatain HTML, javascripts, and styles
for each chart or map.⌉[

Chart Snippets Post Type, which conatain HTML, javascripts, and styles for each 
chart or map.

[⌊A D3.js Example, drawn using this plugin.⌉⌊A D3.js Example, drawn using this plugin
.⌉[

A D3.js Example, drawn using this plugin.

[⌊A Line chart drawn using Flot Charts library⌉⌊A Line chart drawn using Flot Charts
library⌉[

A Line chart drawn using Flot Charts library

## 安装

 1. If you choose to install in manually, make sure all the files from the downloaded
    archive to be uploaded to the ‘/wp-content/plugins/blazing-charts/’ directory.
 2. 通过WordPress的的“Plugins”菜单激活插件

## 常见问题

  Installation Instructions

 1. If you choose to install in manually, make sure all the files from the downloaded
    archive to be uploaded to the ‘/wp-content/plugins/blazing-charts/’ directory.
 2. 通过WordPress的的“Plugins”菜单激活插件

  What if I want to use a different version of those libraries locally?

In that case, please upload it to the related foler of “js” folder of this plugin,
and keep the same naming convention for the library.

## 评价

![](https://secure.gravatar.com/avatar/069693f2e3cff7e23fd7169ddeabbdb1495c4eb74f0210a2a3c0606e322f1338?
s=60&d=retro&r=g)

### 󠀁[Super support, works fine](https://wordpress.org/support/topic/super-support-works-fine/)󠁿

 [serior63](https://profiles.wordpress.org/serior63/) 2017 年 9 月 11 日

Very good plugin. Nice charts.

![](https://secure.gravatar.com/avatar/06556f4274aedcca67b77f2e083624e735ffbf462f2fdd19e2ee02993db4673a?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-3491/)󠁿

 [robcerasa](https://profiles.wordpress.org/robcerasa/) 2017 年 1 月 16 日

Many options, looks great, responsive, no complaints. Very easy to use. (my only
review because it deserves it).

![](https://secure.gravatar.com/avatar/ab1b181ded6d597ed98313209facf18a7c053f5aa1989e3694df74f081552948?
s=60&d=retro&r=g)

### 󠀁[is indeed blazing](https://wordpress.org/support/topic/is-indeed-blazing/)󠁿

 [kabouton](https://profiles.wordpress.org/kabouton/) 2016 年 9 月 3 日

was trying to get a bubble chart in my blog. Using zingchart this worked great and
is very fast. Thanks.

![](https://secure.gravatar.com/avatar/958b16f123050d8bcc9393c9b6d513348d59a9e22e03b604f02565a71d138021?
s=60&d=retro&r=g)

### 󠀁[Excelent plugin](https://wordpress.org/support/topic/excelent-plugin-89/)󠁿

 [fgtamez](https://profiles.wordpress.org/fgtamez/) 2016 年 9 月 3 日

This software I have found very useful and easy to insert quality plotting my wordpress
designs. Excellent for its designer and thank you for making it available.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/blazing-charts/reviews/)

## 贡献者及开发者

「Blazing Charts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Massoud Shakeri ](https://profiles.wordpress.org/massoudshakeri/)

[帮助将「Blazing Charts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/blazing-charts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/blazing-charts/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/blazing-charts/)，或通过[RSS](https://plugins.trac.wordpress.org/log/blazing-charts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/blazing-charts/)。

## 更新日志

#### 1.0.6

Removed all the commented lines which references to local highcharts libraries, 
to prevent WordPress plugin alarms triggered

#### 1.0.5

Changed Flot CDN to Cloudflare, the original CDN is not there any more. Changed 
HighCharts CDN url to protocol-relative.

#### 1.0.4

 * Updated Readme.txt and Settings page

#### 1.0.3

 * Updated chart.js charting library to version 2.2.2, and added a CDN source for
   it.
 * Also added “bundle” as an option for Chart.js, so it can be used like this:
 * [BlazingChart charttype=”chartjs” options=”bundle” …]

#### 1.0.2

 * Added NVD3.js as an option for D3.js, so it can be used like this:
    [BlazingChart
   charttype=”d3″ options=”nvd3″ …]

#### 1.0.1

 * Updated Chartist.js local js & css libraries

#### 1.0

 * First Release.

## 额外信息

 *  版本 **1.0.6**
 *  最后更新：**9 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.9.35**
 *  语言
 * [English (US)](https://wordpress.org/plugins/blazing-charts/)
 * 标签
 * [charts](https://cn.wordpress.org/plugins/tags/charts/)[graph](https://cn.wordpress.org/plugins/tags/graph/)
   [highcharts](https://cn.wordpress.org/plugins/tags/highcharts/)[maps](https://cn.wordpress.org/plugins/tags/maps/)
 *  [高级视图](https://cn.wordpress.org/plugins/blazing-charts/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/blazing-charts/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/blazing-charts/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/blazing-charts/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/blazing-charts/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/blazing-charts/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/blazing-charts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/blazing-charts/reviews/)

## 贡献者

 *   [ Massoud Shakeri ](https://profiles.wordpress.org/massoudshakeri/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/blazing-charts/)