Meter Chart

A simple representation of one value.



Color Themes


{
   "y" : {
      "data" : [
        [85]
      ],
      "smps" : ["January"],
      "vars" : ["Performance"]
   }
}
{
   "graphType" : "Meter",
   "meterColors" : ["rgb(0,255,0)","rgb(255,255,0)","rgb(255,255,0)","rgb(255,0,0)"],
   "meterMax" : "100",
   "meterMin" : "0",
   "meterSegments" : ["25","50","75","100"],
   "meterType" : "gauge"
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-meter-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  graphType="Meter",
  meterColors=list("rgb(0,255,0)", "rgb(255,255,0)", "rgb(255,255,0)", "rgb(255,0,0)"),
  meterMax=100,
  meterMin=0,
  meterSegments=list(25, 50, 75, 100),
  meterType="gauge"
)