Skip to content

Instantly share code, notes, and snippets.

@edorian
Last active November 6, 2015 11:03
Show Gist options
  • Save edorian/0e07040724899a10b807 to your computer and use it in GitHub Desktop.
Save edorian/0e07040724899a10b807 to your computer and use it in GitHub Desktop.
Stacked area charts in graphite
https://graphite.rgcloud.net/render/?from=-1month
&yMin=0
&areaAlpha=0.1
&areaMode=all
&width=1400
&height=800
&colorList=green,darkgreen,gray,yellow,red,blue
&title=Title
&vtitle=[%] of thing
&target=alias(
movingAverage(
scale(
divideSeries(
sumSeries(rg.community.retracted.Step5.*.count),
sumSeries(rg.community.retracted.Step1.*.count)
),
100
),
100
),
"All steps completed"
),
&target=alias(
movingAverage(
scale(
divideSeries(
sumSeries(rg.community.retracted.Step3.*.count),
sumSeries(rg.community.retracted.Step1.*.count)
),
100
),
100
),
"Drop off after step 3"
),
&target=alias(
movingAverage(
scale(
divideSeries(
sumSeries(rg.community.retracted.Step4.*.count),
sumSeries(rg.community.retracted.Step1.*.count)
),
100
),
100
),
"Drop off after step 4"
)
&target=alias(
movingAverage(
scale(
divideSeries(
diffSeries(
sumSeries(rg.community.retracted.Step1.*.count),
sumSeries(rg.community.retracted.Step2b.*.count),
sumSeries(rg.community.retracted.Step2a.*.count)
),
sumSeries(rg.community.retracted.Step1.*.count)
),
100
),
100
),
"Drop off after step 1"
)
&target=alias(
movingAverage(
scale(
divideSeries(
diffSeries(
sumSeries(rg.community.retracted.Step1.*.count),
sumSeries(rg.community.retracted.Step2a.*.count)
),
sumSeries(rg.community.retracted.Step1.*.count)
),
100
),
100
),
"Drop off after step 2 because of option a"
)
&target=alias(
movingAverage(
scale(
divideSeries(
sumSeries(rg.community.retracted.Step1.*.count),
sumSeries(rg.community.retracted.Step1.*.count)
),
100
),
100
),
"Drop off after step 2 because of option b"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment