Table of Contents

AV Bar Chart Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" probably
  • 2023-04-04 "Jack Jackrum" probably
  • 2022-07-31 "Igor" probably
  • 2020-07-29 "Hogfather" yes

plugin Generates a simple HTML/CSS bar chart. Supports colored bars.

Last updated on
2022-08-08
Provides
Syntax
Repository
Source

Similar to pchart

Tagged with chart, diagram, images, media

Description

With this plugin you can create a quick and easy bar chart on your DokuWiki page. It uses CSS and HTML only and no images needed.

Screenshot and info available here: https://github.com/syntaxseed/avbarchart.

Syntax and Usage

<barchart>1000|A:500,B:50,C:250,D:1000</barchart>

You can then use regular DokuWiki syntax to put a title above it and if needed, a legend below to describe the labels. If you make the bars wide, the labels can be full text.

Colored Bars

Add a hex color code to individual bars like so:

<barchart>1000|A:500:#ff0000,B:50,C:250,D:1000</barchart>

Installation

Configuration Vars:

// ********* CHART CONFIG SETTINGS *************

var $barWidth = 20;         //Pixel width of chart bars.
var $barColor = "#ccccff";  //Color of graph bars.
var $fontSize = "8pt;";     //Font size of labels and values.
var $maxPxHeight = "100";   //Maximum height of the chart in pixels.

// *********************************************

If your barWidth is not wider than the labels, your chart will look funny.

Source

https://github.com/syntaxseed/avbarchart

Contributing

Please submit a PR to the GitHub repo.

Known Bugs

To Do

Changelog

Comments / Discussion

Hi everyone, let me know what you think. ~Sherri

Simple and elegant plugin. Excellent work!. ~Dmitri