-
-
Notifications
You must be signed in to change notification settings - Fork 170
How to configure X
Aurora Lahtela edited this page Jan 21, 2024
·
3 revisions
This page has some frequently asked configuration/customization how-to's listed. They are optional.
- Change
Formatting.Dates
settings in the Plan config. See https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html for pattern reference
- This feature is in development https://github.com/plan-player-analytics/Plan/issues/2781
Add a new dateTimeLabelFormats
to the graph's configuration options. (Note that xAxis section may also be needed)
xAxis: {
dateTimeLabelFormats: {
hour: '%H:%M',
day: '%e. %b',
},
},
See https://api.highcharts.com/highcharts/xAxis.dateTimeLabelFormats for pattern reference
Add some configuration at the top of the graphs.js file
Highcharts.setOptions({
xAxis: {
dateTimeLabelFormats: {
hour: '%H:%M',
day: '%e. %b',
},
}
});
See https://api.highcharts.com/highcharts/xAxis.dateTimeLabelFormats for pattern reference
- Use Html Customization to get customized
js/graphs.js
file.
Change the buttons
sections in the file
buttons: [{
type: 'hour',
count: 1,
text: '1h'
},{
type: 'hour',
count: 6,
text: '6h'
},{
type: 'hour',
count: 12,
text: '12h'
},{
type: 'hour',
count: 24,
text: '24h'
},{
type: 'day',
count: 7,
text: '7d'
},{
type: 'month',
count: 1,
text: '30d'
},{
type: 'all',
text: 'All'
}]