Forum - jschmidt-systemberatung.de

× php-RGraph und php-rgraph Joomla Content Plugin

php rgraph plugin settings.

  • grant
  • Autor
  • Fresh Boarder
  • Fresh Boarder
Mehr
1 Monat 3 Tage her #1615 von grant
php rgraph plugin settings. wurde erstellt von 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}

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.566 Sekunden
Powered by Kunena Forum
Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbesssern. Auf keinen Fall werden persönliche oder vertrauliche Daten gespeichert oder weitergegeben.