Meter Chart

A simple representation of one value.



Color Themes


{
   "x" : {
      "Quarter" : ["Q1","Q1","Q1","Q1","Q1","Q1","Q2","Q2","Q2","Q2","Q2","Q2"]
   },
   "y" : {
      "data" : [
        [85,60,29,10,90,98,93,65,89,34,82,67],
        [1000,5000,4000,2000,7000,9000,8000,3000,2000,6000,5000,10000]
      ],
      "smps" : ["January","February","March","April","May","June","July","August","September","October","November","December"],
      "vars" : ["Performance","Revenue"]
   },
   "z" : {
      "type" : ["Performance","Revenue"]
   }
}
{
   "graphType":"Meter",
   "meterType":"number",
   "meterVar":"Revenue"
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-meter2-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
x=read.table("https://www.canvasxpress.org/data/cX-meter2-smp.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
z=read.table("https://www.canvasxpress.org/data/cX-meter2-var.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  smpAnnot=x,
  varAnnot=z,
  graphType="Meter",
  meterType="number",
  meterVar="Revenue"
)