Skip to content

Commit

Permalink
ChartDebugging
Browse files Browse the repository at this point in the history
  • Loading branch information
febbraiod committed Oct 15, 2024
1 parent 4ef6d4a commit d524a48
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions client-app/src/desktop/tabs/charts/LineChartModel.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {ChartModel} from '@xh/hoist/cmp/chart';
import {HoistModel, managed, XH} from '@xh/hoist/core';
import {observable, makeObservable, runInAction, bindable} from '@xh/hoist/mobx';
import Highcharts from 'highcharts/highstock';
import {isEmpty} from 'lodash';
import {Highcharts} from '@xh/hoist/kit/highcharts';

export class LineChartModel extends HoistModel {
@bindable currentSymbol: string = '';
Expand Down Expand Up @@ -52,10 +52,24 @@ export class LineChartModel extends HoistModel {
private getChartModelCfg() {
const fillColor = Highcharts.getOptions().colors[0];
return {
exporting: {
enabled: true,
buttons: {
contextButton: {
menuItems: [
'viewFullscreen',
'separator',
...(Highcharts.isWebKit ? ['copyToClipboard'] : []),
'printChart',
'separator',
'downloadCSV'
]
}
}
},
chart: {zoomType: 'x'},
navigator: {enabled: true},
rangeSelector: {enabled: true},
exporting: {enabled: true},
legend: {enabled: false},
scrollbar: {enabled: false},
xAxis: {type: 'datetime'},
Expand Down

0 comments on commit d524a48

Please sign in to comment.