Skip to content

Instantly share code, notes, and snippets.

@stphnwlkr
Created July 26, 2012 09:18
Show Gist options
  • Select an option

  • Save stphnwlkr/3181168 to your computer and use it in GitHub Desktop.

Select an option

Save stphnwlkr/3181168 to your computer and use it in GitHub Desktop.
ZingChart with rule
{
"show-progress":false,
"animate-type":"initial","graphset":[
{
"histogram":true,
"preview":{"position" : "50% 100%","margin" : "10,50,10,50","height" : 50, "handles":{
"border-color":"#000000",
"border-width":1
}},
"scale-y":{"zooming":true,"thousands-separator":","},
"scale-x":{"zooming":true,"thousands-separator":","},
"plot":{"preview":true,"animation":{
"effect":3,
"method":5
},"value-box":{
"text":"%v"
},
"rules": [
{"rule":"%v < 0 && %v >= -48","background-color":"#cc9999","background-color-2":"#cc9999"},
{"rule":"%v < -48","background-color":"#b90000","background-color-2":"#b90000"},
{"rule":"%v > 0 && %v <= 65", "background-color":"#b1e8b1", "background-color-2":"#b1e8b1"},
{"rule":"%v > 65","background-color":"#5eb651", "background-color-2":"#5eb651" }
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment