charting update

master
Steve L. Nyemba 8 years ago
parent 87189f2f9f
commit 7a31930840

@ -136,7 +136,7 @@ jx.jqplot.bar.options = function(){
rendererOptions: { rendererOptions: {
highlightMouseDown: true, highlightMouseDown: true,
// smooth: true, smooth: true,
animation: { animation: {
speed:900, speed:900,
show: true show: true
@ -166,7 +166,10 @@ jx.jqplot.bar.options = function(){
// show: keys.length > 1, // show: keys.length > 1,
location: 'ne', location: 'ne',
xoffset:2, xoffset:2,
placement: 'outsideGrid' placement: 'outsideGrid',
show:true
} }
} }
return options; return options;
@ -182,7 +185,7 @@ jx.jqplot.bar.render = function(id,series,labels,lnames){
jx.dom.set.value(id,'') jx.dom.set.value(id,'')
var options = jx.jqplot.bar.options() var options = jx.jqplot.bar.options()
options.axes.xaxis.ticks = labels ; options.axes.xaxis.ticks = labels ;
options.legend.show = true //options.legend.show = true
options.series = lnames; options.series = lnames;
return $.jqplot(id, series,options) return $.jqplot(id, series,options)
@ -206,11 +209,13 @@ jx.jqplot.stackedBar.render = function(id,series,label,lnames){
jx.jqplot.donut = {} jx.jqplot.donut = {}
jx.jqplot.donut.options= function(){ jx.jqplot.donut.options= function(){
var options = { var options = {
animate:true,
animateReplot:true, animateReplot:true,
grid:{ grid:{
drawGridLines:false, drawGridLines:false,
background:'transparent', background:'transparent',
borderColor:'white' borderColor:'white',
borderWidth:'1px'
}, },
seriesDefaults: { seriesDefaults: {
@ -222,6 +227,7 @@ jx.jqplot.donut.options= function(){
startAngle: -90, startAngle: -90,
showDataLabels: true, showDataLabels: true,
// dataLabels: 'value' // dataLabels: 'value'
dataLabels:'percent'
} }
}, },
legend: { show:true, location: 'e' } legend: { show:true, location: 'e' }

Loading…
Cancel
Save