-
Notifications
You must be signed in to change notification settings - Fork 96
Custom Templates
Custom templates can be added by calling the highed.templates.add(type, definition)
function.
The type can be either of the following:
line
area
column
bar
scatterandbubble
pie
polar
stock
more
combinations
The definition is an object as such:
{
title: 'Pretty title',
urlImg: 'http://example.com/mypreview.png',
tooltipText: 'Showed on hover in the info panel',
config: {
//Set of highcharts properties
title: {
text: 'My template'
}
}
}
Custom chart types can also be added, which will appear in the category list in the template selector UI.
This can be done by calling highed.templates.addType(typ, title)
, where type
is a string containing the type id, and title is the title as it should appear in the category list. After adding a template type, a custom template can be added to it by calling highed.templates.add
with the new type name as the first argument.
Multiple templates can be installed at the same time by using the highed.installMultipleTemplates
function:
highed.templates.addMultiple([
{type: 'line', template: {title: 'My Line Template', config: {}}},
...
]);
Overview
Stand-alone Usage
Advanced
- Enable Advanced Customization
- Choosing Which Options to Include
- Adding Custom Templates
- Plugins
- Disabling Editor Features
- Adding Fonts
- Custom Templates
- Localization
- Sticky Chart Options
Integrating
API Reference