Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default chart options does not work. #81

Closed
VictorioBerra opened this issue Dec 2, 2016 · 0 comments
Closed

Default chart options does not work. #81

VictorioBerra opened this issue Dec 2, 2016 · 0 comments

Comments

@VictorioBerra
Copy link

VictorioBerra commented Dec 2, 2016

Once again, sorry this isnt testable with a link straight out to jsfiddle. You can run this html page in a directory with highed and you will be good to go.

Also note that the modal will not close.

Chrome - Version 54.0.2840.99 m (64-bit)
highed - v0.1.1-beta

<html>
<head>
    <script src="http://code.highcharts.com/highcharts.js"></script>
    <link href="./highcharts-editor.min.css" rel="stylesheet" />
    <script src="./highcharts-editor.js"></script>
</head>
<body>
<button onclick="openModal()">Modal</button>

<script>
window.openModal = function(){	
    highed.ModalEditor(document.body, {
    	defaultChartOptions: {
    		"subtitle":{
    			"text":"Hello World"
    		}
    	},
        type: 'simple',
        features: 'customize done',
        allowDone: true,
        importer: {
            options: ''
        }
    });
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant