SB Chart block
by bobbingwide 5 (1 reviews)

SB Chart block

Displays a Chart for CSV content.

Tested up to WP 6.8 (Current: 6.9)
v1.3.1 Current Version v1.3.1
Updated 9 months ago Last Update on 18 Apr, 2025
Synced 14 hours ago Last Synced on
Rank
#10,327
No change
Active Installs
400+
-6.8%
KW Avg Position
39
No change
Downloads
7.4K
+4 today
Support Resolved
0%
No change
Rating
100%
Review 5 out of 5
5 (1 reviews)

Next Milestone 500

Total Progress 12%
400+ 500+
776
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 88 more installs to reach 500+

Rank Changes

10,262 10,296 10,330 10,364 10,398 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
10,262 10,296 10,330 10,364 10,398 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
10,249 10,286 10,324 10,362 10,399 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
10,241 10,281 10,321 10,360 10,400 23-10-2025 24-10-2025 25-10-2025 26-10-2025 27-10-2025 28-10-2025 29-10-2025 30-10-2025 31-10-2025 01-11-2025 02-11-2025 03-11-2025 04-11-2025 05-11-2025 06-11-2025 07-11-2025 08-11-2025 09-11-2025 10-11-2025 11-11-2025 12-11-2025 13-11-2025 14-11-2025 15-11-2025 16-11-2025 17-11-2025 18-11-2025 19-11-2025 20-11-2025 21-11-2025 22-11-2025 23-11-2025 24-11-2025 25-11-2025 26-11-2025 27-11-2025 28-11-2025 29-11-2025 30-11-2025 01-12-2025 02-12-2025 03-12-2025 04-12-2025 05-12-2025 06-12-2025 07-12-2025 08-12-2025 09-12-2025 10-12-2025 11-12-2025 12-12-2025 13-12-2025 14-12-2025 15-12-2025 16-12-2025 17-12-2025 18-12-2025 19-12-2025 20-12-2025 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
Current #10,327
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
0 10 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
0 10 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
0 10 20 23-10-2025 26-10-2025 29-10-2025 01-11-2025 04-11-2025 07-11-2025 10-11-2025 13-11-2025 16-11-2025 19-11-2025 22-11-2025 25-11-2025 28-11-2025 01-12-2025 04-12-2025 07-12-2025 10-12-2025 13-12-2025 16-12-2025 19-12-2025 22-12-2025 25-12-2025 28-12-2025 31-12-2025 03-01-2026 06-01-2026 09-01-2026 12-01-2026 15-01-2026 18-01-2026 21-01-2026
0 50 100 150 21-01-2025 02-02-2025 14-02-2025 26-02-2025 10-03-2025 22-03-2025 03-04-2025 15-04-2025 27-04-2025 09-05-2025 21-05-2025 02-06-2025 14-06-2025 26-06-2025 08-07-2025 20-07-2025 01-08-2025 13-08-2025 25-08-2025 06-09-2025 18-09-2025 30-09-2025 12-10-2025 24-10-2025 05-11-2025 17-11-2025 29-11-2025 11-12-2025 23-12-2025 04-01-2026 16-01-2026 21-01-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
1 reviews
Overall 100%
5
1 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 4 of 4
Keyword Position Change Type Updated
pie chart 30 Tag 17 hours ago
Horizontal bar chart 33 Tag 17 hours ago
Line chart 36 Tag 17 hours ago
Bar chart 57 Tag 17 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
1.3.1
Last Updated
Apr 18, 2025
Requires WP
5.6.0+
Tested Up To
6.8
PHP Version
7.2.0 or higher
Author
bobbingwide

Support & Rating

Rating
★ ★ ★ ★ ★ 5
Reviews
1
Support Threads
0
Resolved
0%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about SB Chart block

Line and stacked line, with optional fill
Bar and stacked bar
Horizontal bar and stacked horizontal bar
Pie
Use the Background color overrides and border color overrides fields to set custom color values.
What options are there?
Options to control the chart display are:

Stacked - Toggle on to stack line or bar charts
Begin Y axis at 0 toggle
Fill toggle for line charts
Time line toggle for a date based axis, with selectable Time unit (stepSize)
Y-axes for multi axis charts
Color palette dropdown
Background color overrides. Enter comma separated hex codes.
Border color overrides. Enter comma separated hex codes.
Opacity - set the opacity of the background colours.
Height of the chart, in pixels
Bar thickness in pixels
Tension - for curved line charts
Legend font size
X-axis font size

What Chart script does it use?
v1.2.6 delivers chartjs v4.4.2
and chartjs-adapter-date-fns v3.0.0
What do I need to search for to find the block?
Chart or SB Chart
What if my first language is not English?
If your first language is not English then you could try:

French - graphique
German - Diagramm
Dutch - grafiek
Italian - grafico
Spanish - gráfico

Do I need to build this block?
No. The plugin is delivered with the production version of the block.
If you do wish to modify the code then you can find instructions in the src folder.
Are there shortcodes available?
Charts can be embedded with the shortcode chartjs. The general syntax is as follows:

[chartjs attribute="attribute value"]CSV content[/chartjs]

Several attributes can be added at the same time. Example:

[chartjs attribute1="attribute1 value" attribute2="attribute2 value"]CSV content[/chartjs]

Here's the list of supported attributes:

backgroundColors (string): list of custom background colors (separated by comma) to use for datasets. For example, if there are 3 datasets (d1, d2 and d3) and we want d1 to use the color #0000FF, d2 to use #FFFF00 and d3 to use #008000, the value of the attribute must be #0000FF,#FFFF00,#008000. If some colors are missing (ex.: #0000FF,,#008000), default colors from the theme (set with the attribute theme) are used as fallback (#0000FF,second theme color,#008000); default is no custom colors used
barThickness (int): thickness (in pixels) of a bar in bar charts; default is the default Chart.js thickness
beginYAxisAt0 (bool): make sure the Y axis begins at 0; default is false
borderColors (string): list of custom border colors (separated by comma) to use for datasets. See the description of the attribute backgroundColors for more details; default is the value of the attribute backgroundColors
class (string): class or classes to be added to the chart container; default is an empty string
fill (bool): fill the area under the line; default is false
height (int): chart height (in pixels); default is the default Chart.js height
indexAxis (string): axis to use as index; choices are x, y; note that y is automatically used for horizontal bar charts; default is x
max (float): maximum value for Y axes; default is no maximum value
opacity (float): opacity to apply to the lines or bars; it must be between 0 and 1; default is 0.8
showLine (bool): show (draw) lines; default is true
stacked (bool): enable stacking for line/bar charts; default is false
tension (float): add Bezier curve tension to lines; when set to 0, lines are straight; default is 0
theme (string): theme used for the chart colors; choices are Chart, Gutenberg, Rainbow, Tertiary, Visualizer, Wordpress; default is Chart
time (bool): add support for time line on the X axis; default is false
timeUnit (string): time unit to use if time line is enabled; choices are year, quarter, month, week, day, hour, minute, second, millisecond; default is hour
type (string): type of chart; choices are bar, horizontalbar, line, pie; default is line
yAxes (string): list of Y axes to which the datasets are bound. It allows to enable multi-axis charts. For example, if there are 3 datasets (d1, d2 and d3) and we want d1 to use the first Y axis, and d2 and d3 to use the second Y axis, the attribute value must be y,y1,y1; default is an empty string, so multi-axis feature is disabled and all datasets are automatically bound to the first (and only) Y axis y

Here's a fully functional example:

[chartjs backgroundColors="#008000" fill="true" opacity="0.35" tension="0.2" theme="Visualizer" time="true" timeUnit="month" yAxes="y,y1"]Year,Sales,Expenses
2020-08,5421.32,1151.21
2021-02,4823.99,887.23
2021-03,4945.32,958.00
2021-10,7086.65,1854.35
2022-05,7385.21,2009.01
[/chartjs]

Here's the result:
sb_chart_block_content: filter allowing to manipulate the content before it's processed
sb_chart_block_options: filter allowing to add custom Chart.js options

For example, to customize the legend, use the sb_chart_block_options filter in your functions.php theme file as follows:

`php

function customize_legend($options, $atts, $series) {
$custom_options = to_array($options);

$custom_options['plugins']['legend']['labels']['font']['size'] = 16;
$custom_options['plugins']['legend']['labels']['color'] = '#0000FF';

return json_decode(json_encode($custom_options));

}
add_filter('sb_chart_block_options', 'customize_legend', 10, 3);

function to_array($data) {
$array = [];

if (is_array($data) || is_object($data)) {
foreach ($data as $key => $value) {
$array[$key] = (is_array($value) || is_object($value)) ? to_array($value) : $value;
}
} else {
$array[] = $data;
}

return $array;

}
`

Here's another way (without array conversion):

`php

function customize_legend($options, $atts, $series) {
if (!isset($options->plugins)) $options->plugins = new stdClass();
if (!isset($options->plugins->legend)) $options->plugins->legend = new stdClass();
if (!isset($options->plugins->legend->labels)) $options->plugins->legend->labels = new stdClass();
if (!isset($options->plugins->legend->labels->font)) $options->plugins->legend->labels->font = new stdClass();

$options->plugins->legend->labels->font->size = 16;
$options->plugins->legend->labels->color = '#0000FF';

return $options;

}
add_filter('sb_chart_block_options', 'customize_legend', 10, 3);
`

Sign In / Register

You need to sign in or register to use this feature.