Forum - jschmidt-systemberatung.de

× php-RGraph and php-rgraph Joomla Content Plugin

php rgraph plugin settings.

  • grant
  • Topic Author
  • Fresh Boarder
  • Fresh Boarder
More
3 weeks 5 days ago #1615 by grant
php rgraph plugin settings. was created by grant
So the rest of you don't have to click 10 times to find a setting. 
php-rgraph Line Chart - Settings Reference
==========================================

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


PLUGIN-SPECIFIC
type                "Line"
width               "700"
height              "350"
data                "database"  or "csv"  or inline "4,8,6,3"
sql                 "SELECT label_col, value_col FROM view ORDER BY label_col ASC"
x_step              "7"            show every Nth x label (7=weekly, 14=biweekly)
trendline           "1"
trendlineColors     "#008000"
trendlineLinewidth  "2"
trendlineDashed     "1"
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"
create_png          "true"
suppress_error      "true"


TITLE
title               "Kestrel Visits 2026"
titleBold           "1"
titleSize           "14"
titleColor          "#333"
titleSubtitle       "updated #date# at #time#"
titleSubtitleColor  "#555"
titleSubtitleSize   "10"


MARGINS
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
----
colors              "#4a90d9"
linewidth           "2"
filled              "true"
filledColors        "rgba(74,144,217,0.2)"
spline              "true"   smooth curves
stepped             "true"   staircase style


TICKMARKS (data point markers)
tickmarksStyle      "filledcircle"   see list at top
tickmarksSize       "5"
tickmarksColor      "#4a90d9"        defaults to line color
tickmarksLinewidth  "2"


LABELS ABOVE POINTS
labelsAbove             "1"
labelsAboveSize         "9"
labelsAboveColor        "#333"
labelsAboveBold         "true"
labelsAboveOffsety      "-5"                    negative = higher
labelsAboveOffsetx      "0"
labelsAboveBackground   "rgba(255,255,255,0.7)"
labelsAboveDecimals     "0"
labelsAboveUnitsPre     "$"
labelsAboveUnitsPost    "k"


X-AXIS
xaxisLabelsAngle        "45"
xaxisLabelsSize         "10"
xaxisLabelsColor        "#333"
xaxisLabelsOffsety      "2"
xaxisLabelsOffsetx      "0"
xaxisTickmarks          "true"
xaxisTickmarksCount     "12"
xaxisTickmarksLength    "3"
xaxisColor              "#999"
xaxisLinewidth          "1"
xaxisTitle              "Date"
x_step                  "7"     plugin param - show every Nth label


Y-AXIS
yaxisScaleMin       "0"
yaxisScaleMax       "20"
yaxisScaleDecimals  "0"
yaxisLabelsCount    "5"
yaxisLabelsSize     "10"
yaxisLabelsColor    "#333"
yaxisColor          "#999"
yaxisTitle          "Visits"
yaxisScaleUnitsPre  "$"
yaxisScaleUnitsPost "k"
yaxisPosition       "right"
yaxisScaleInvert    "true"


BACKGROUND GRID
backgroundGrid              "true"
backgroundGridColor         "#eee"
backgroundGridVlines        "false"
backgroundGridHlines        "true"
backgroundGridBorder        "false"
backgroundGridHlinesCount   "5"
backgroundGridVlinesCount   "10"
backgroundGridLinewidth     "1"
backgroundGridDashed        "true"
backgroundGridDotted        "true"
backgroundGridAutofit       "true"


SHADOW
shadow          "true"
shadowColor     "#aaa"
shadowBlur      "5"
shadowOffsetx   "2"
shadowOffsety   "2"


CROSSHAIRS
crosshairs          "true"
crosshairsColor     "#aaa"
crosshairsLinewidth "1"
crosshairsHline     "false"
crosshairsVline     "true"


WORKING EXAMPLE - KESTREL 2026
{rgraph type="Line" width="700" height="350"
title="Kestrel Nestbox Visits 2026"
titleBold="1"
titleSize="14"
titleColor="#333"
data="database"
sql="SELECT visit_date, daily_visits_count FROM daily_visits_2026 ORDER BY visit_date ASC"
marginLeft="50"
marginRight="20"
marginTop="30"
marginBottom="80"
marginInner="15"
colors="#4a90d9"
linewidth="2"
tickmarksStyle="filledcircle"
tickmarksSize="5"
labelsAbove="1"
labelsAboveSize="9"
labelsAboveColor="#333"
labelsAboveOffsety="-5"
xaxisLabelsAngle="45"
xaxisLabelsSize="10"
x_step="7"
yaxisScaleMin="0"
yaxisScaleDecimals="0"
yaxisLabelsCount="5"
backgroundGridVlines="false"
backgroundGridBorder="false"
backgroundGridHlinesCount="5"
tooltip="#label#<br>#val# visits"
tooltipsEvent="onmousemove"}cvs{/rgraph}

Please Log in or Create an account to join the conversation.

Time to create page: 0.545 seconds
Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.