https://github.com/matthewcallis/grafit
A plugin for ExpressionEngine to display super small, inline sparkline graphs/charts from CSV style data
https://github.com/matthewcallis/grafit
Last synced: 2 months ago
JSON representation
A plugin for ExpressionEngine to display super small, inline sparkline graphs/charts from CSV style data
- Host: GitHub
- URL: https://github.com/matthewcallis/grafit
- Owner: MatthewCallis
- Created: 2009-11-26T02:34:47.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-11-26T05:43:22.000Z (over 15 years ago)
- Last Synced: 2025-01-05T23:41:23.638Z (4 months ago)
- Language: PHP
- Homepage: http://matthewcallis.github.com/GrafIt/
- Size: 74.2 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
GrafIt - Simple, Inline Sparkline Graphs/Charts
===============================================================
A plugin for ExpressionEngine to display super small, inline sparkline graphs/charts from CSV style data{exp:grafit gap="0.25" height="16" id="graph"}0,8,5,6,8,14,12,9,14,35,36,39,29,46,32,6,35,23{/exp:grafit}
Will output the graph as an image the user can save, using PHP{exp:grafit width="72" height="24" id="chart" output="js"}0,8,5,6,8,14,12,9,14,35,36,39,29,46,32,6,35,23{/exp:grafit}
Will output the graph as a canvas element the user cannot save, using JavaScriptParameters:
bg: The background color of the graph, it will show transparent but when saved it will show; default is #FFFFFF
color: The color of the bar/line; default is #F92672
gap: The space between bars, in decimal percentage; default is 0.25
width: a little tricky, on the bar it is the space of one bar AND gap, on a line graph is it the entire width of the chart; default is 4px
height: the height of the graph in pixels; default is 16px
output: the type of chart, either don't use it or 'js'; default is blank