highcharts - Revert theme to default -


how can revert theme default 1 in highcharts after have applied theme?

i tried doesn't work.

highcharts.theme = { }; var highchartsoptions = highcharts.setoptions(highcharts.theme);  

i tried solution described here

removing of color options code below , reloading highcharts object make default basic theme

...but doesn't work either.

thanks

unforunately need overwrite colors / parameters default values second chart.

http://jsfiddle.net/wngpq/2/

 var theme = {   colors: ['#2f7ed8', '#0d233a', '#8bbc21', '#910000', '#1aadce', '#492970',         '#f28f43', '#77a1e5', '#c42525', '#a6c96a'],    chart: {       backgroundcolor: '#fff',       borderwidth: 0,       plotbackgroundcolor: '#fff',       plotshadow: false,       plotborderwidth: 0    },    title: {       style: {             color: '#274b6d',//#3e576f',             fontsize: '16px'       }    },    subtitle: {       style: {             color: '#4d759e'        }    },    xaxis: {       gridlinewidth: 0,       linecolor: '#c0d0e0',       tickcolor: '#c0d0e0',       labels: {          style: {             color: '#666',             cursor: 'default',             fontsize: '11px',             lineheight: '14px'          }       },       title: {          style: {                 color: '#4d759e',                 fontweight: 'bold'         }       }    },    yaxis: {       minortickinterval: null,       linecolor: '#c0d0e0',       linewidth: 1,       tickwidth: 1,       tickcolor: '#c0d0e0',       labels: {          style: {             color: '#666',             cursor: 'default',             fontsize: '11px',             lineheight: '14px'          }       },       title: {          style: {                 color: '#4d759e',                 fontweight: 'bold'         }       }    },    legend: {       itemstyle: {             color: '#274b6d',             fontsize: '12px'       },       itemhoverstyle: {          color: '#000'       },       itemhiddenstyle: {          color: '#ccc'       }    },    labels: {       style: {             color: '#3e576f'         }    },     navigation: {       buttonoptions: {          theme: {             stroke: '#cccccc'          }       }    } }; 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -