sarah
Posts: 1
Joined: Mon Mar 06, 2017 11:59 am

Save Cusomized Settings

Hi,

I wonder, how it is possible to save the customized settings.

So the workflow ist ->import data ->choose the template ->customize

But how is it possible save the colors, the background color etc. so that you don´t have to make all settings every time again?

Thanks for advise,

Sarah
stpoa

Re: Save Cusomized Settings

Hi,

I think, that the best idea would be pasting your copied config into custom code field. The problem with this solution is that, you cannot further modify these options using editor, you would have to change them manually. Example below:

Code: Select all

const savedOptions = {
	"chart": {
		"type": "line"
	},
	"yAxis": {
		"type": "logarithmic",
		"minorTickInterval": "auto"
	},
	"xAxis": {
		"type": "category"
	},
	"series": [
		{
			"index": 0,
			"name": "Market share",
			"data": [
				[
					"Firefox",
					45
				],
				[
					"IE",
					26.8
				],
				[
					"Chrome",
					12.8
				],
				[
					"Safari",
					8.5
				],
				[
					"Opera",
					6.2
				],
				[
					"Others",
					0.7
				]
			]
		}
	]
};

Highcharts.extend(options, Highcharts.merge(options, savedOptions));
Regards.
Jeffrey Phillips
Posts: 56
Joined: Tue Aug 30, 2016 9:32 pm

Re: Save Cusomized Settings

Isn't this what Themes are (were?) supposed to do?
http://www.highcharts.com/cloud/how-to- ... ded-charts

(I say "were" because Tor's example here: http://jsfiddle.net/highcharts/eq8g4959/ doesn't seem to work. And if Tor can't make it work …)
User avatar
KacperMadej
Posts: 4632
Joined: Mon Sep 15, 2014 12:43 pm

Re: Save Cusomized Settings

Hi,

I apologize for the long reply time.
The link for the theme was wrong. Here's a demo with the correct link: http://jsfiddle.net/eq8g4959/26/

http://code.highcharts.com/themes/dark-unica.js

Best Regards,
Kacper Madej
Kacper Madej
Highcharts Developer

Return to “Highcharts Cloud”