PHP R Graph Plugin Settings
php-rgraph Line Chart — Settings Reference
Quick reference for the php-rgraph Joomla content plugin. Paste parameters inside the
| PLUGIN-SPECIFIC | ||
|---|---|---|
| Parameter | Example | Notes |
| type | "Line" | Required |
| width | "700" | Canvas width px |
| height | "350" | Canvas height px |
| data | "database" | or csv or inline "4,8,6,3" |
| sql | "SELECT label, val FROM view ORDER BY label ASC" | Two-column SELECT |
| x_step | "7" | Show every Nth x label. 7=weekly 14=biweekly |
| trendline | "1" | Add trendline overlay |
| trendlineColors | "#008000" | Trendline color |
| trendlineLinewidth | "2" | Trendline stroke width |
| trendlineDashed | "1" | Dashed trendline |
| truncate_label | "15,..." | Truncate long x labels to N chars |
| tooltip | "#label#<br>#val# visits" | Tokens: #label# #val# #date# #time# |
| tooltipsEvent | "onmousemove" | or onclick |
| tooltipsEffect | "slide" | or fade or expand |
| log_scale | "true" | Logarithmic Y scale |
| create_png | "true" | Render as PNG image |
| suppress_error | "true" | Suppress plugin errors |
| TITLE | ||
| Parameter | Example | Notes |
| title | "Kestrel Visits 2026" | Main chart title |
| titleBold | "1" | Bold title |
| titleSize | "14" | Font size |
| titleColor | "#333" | Color |
| titleSubtitle | "updated #date# at #time#" | Subtitle text |
| titleSubtitleColor | "#555" | Subtitle color |
| titleSubtitleSize | "10" | Subtitle font size |
| MARGINS | ||
| Parameter | Example | Notes |
| marginLeft | "50" | Increase if Y labels are clipped |
| marginRight | "20" | |
| marginTop | "30" | Increase if labelsAbove are clipped |
| marginBottom | "80" | Increase for angled x labels |
| marginInner | "15" | Horizontal padding inside chart area |
| LINE | ||
| Parameter | Example | Notes |
| colors | "#4a90d9" | Line color |
| linewidth | "2" | Stroke width px |
| filled | "true" | Fill area under line |
| filledColors | "rgba(74,144,217,0.2)" | Fill color. Use rgba for transparency |
| spline | "true" | Smooth curved line |
| stepped | "true" | Staircase style |
| TICKMARKS -- style values: circle filledcircle endcircle filledendcircle square endsquare filledsquare filledendsquare diamond enddiamond filleddiamond filledenddiamond tick halftick endtick cross dot borderedcircle arrow filledarrow triangle filledtriangle | ||
| Parameter | Example | Notes |
| tickmarksStyle | "filledcircle" | See values in header above |
| tickmarksSize | "5" | Size px |
| tickmarksColor | "#4a90d9" | Defaults to line color |
| tickmarksLinewidth | "2" | Border stroke width |
| LABELS ABOVE POINTS | ||
| Parameter | Example | Notes |
| labelsAbove | "1" | Show value above each point |
| labelsAboveSize | "9" | Font size |
| labelsAboveColor | "#333" | Color |
| labelsAboveBold | "true" | Bold |
| labelsAboveOffsety | "-5" | Vertical nudge. Negative = higher |
| labelsAboveOffsetx | "0" | Horizontal nudge |
| labelsAboveBackground | "rgba(255,255,255,0.7)" | Label background |
| labelsAboveDecimals | "0" | Decimal places |
| labelsAboveUnitsPre | "$" | Prepend unit |
| labelsAboveUnitsPost | "k" | Append unit |
| X-AXIS | ||
| Parameter | Example | Notes |
| xaxisLabelsAngle | "45" | Rotate labels degrees |
| xaxisLabelsSize | "10" | Font size |
| xaxisLabelsColor | "#333" | Color |
| xaxisLabelsOffsety | "2" | Vertical nudge |
| xaxisLabelsOffsetx | "0" | Horizontal nudge |
| xaxisTickmarks | "true" | Show tickmarks |
| xaxisTickmarksCount | "12" | Number of tickmarks |
| xaxisTickmarksLength | "3" | Tickmark length px |
| xaxisColor | "#999" | Axis line color |
| xaxisLinewidth | "1" | Axis line width |
| xaxisTitle | "Date" | Axis label |
| Y-AXIS | ||
| Parameter | Example | Notes |
| yaxisScaleMin | "0" | Force minimum Y value |
| yaxisScaleMax | "20" | Force maximum Y value |
| yaxisScaleDecimals | "0" | Decimal places |
| yaxisLabelsCount | "5" | Number of Y labels |
| yaxisLabelsSize | "10" | Font size |
| yaxisLabelsColor | "#333" | Color |
| yaxisColor | "#999" | Axis line color |
| yaxisTitle | "Visits" | Axis label |
| yaxisScaleUnitsPre | "$" | Prepend symbol |
| yaxisScaleUnitsPost | "k" | Append symbol |
| yaxisPosition | "right" | Move axis to right side |
| yaxisScaleInvert | "true" | Invert the scale |
| BACKGROUND GRID | ||
| Parameter | Example | Notes |
| backgroundGrid | "true" | Show grid |
| backgroundGridColor | "#eee" | Grid color |
| backgroundGridVlines | "false" | Vertical lines |
| backgroundGridHlines | "true" | Horizontal lines |
| backgroundGridBorder | "false" | Border around chart |
| backgroundGridHlinesCount | "5" | Number of H lines |
| backgroundGridVlinesCount | "10" | Number of V lines |
| backgroundGridLinewidth | "1" | Grid line width |
| backgroundGridDashed | "true" | Dashed lines |
| backgroundGridDotted | "true" | Dotted lines |
| backgroundGridAutofit | "true" | Auto-space gridlines |
| SHADOW | ||
| Parameter | Example | Notes |
| shadow | "true" | Enable shadow |
| shadowColor | "#aaa" | Color |
| shadowBlur | "5" | Blur radius |
| shadowOffsetx | "2" | X offset |
| shadowOffsety | "2" | Y offset |
| CROSSHAIRS | ||
| Parameter | Example | Notes |
| crosshairs | "true" | Enable crosshairs on hover |
| crosshairsColor | "#aaa" | Color |
| crosshairsLinewidth | "1" | Width |
| crosshairsHline | "false" | Horizontal crosshair |
| crosshairsVline | "true" | Vertical crosshair |