-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: address cross-browser style issues by using kebab-cased attribut…
…es and string values
- Loading branch information
1 parent
c22fd05
commit 969f5c3
Showing
3 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
46 changes: 23 additions & 23 deletions
46
...lizations/config/adapters/dhis_highcharts/customSVGOptions/singleValue/renderer/styles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/visualizations/config/adapters/dhis_highcharts/exporting.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { VIS_TYPE_SINGLE_VALUE } from '../../../../modules/visTypes.js' | ||
import { renderSingleValueSVG } from './customSVGOptions/singleValue/renderer/renderSingleValueSVG.js' | ||
|
||
export default function getExporting(layoutType) { | ||
const exporting = { | ||
// disable exporting context menu | ||
enabled: false, | ||
} | ||
switch (layoutType) { | ||
case VIS_TYPE_SINGLE_VALUE: | ||
return { | ||
...exporting, | ||
chartOptions: { | ||
chart: { | ||
events: { | ||
load: renderSingleValueSVG, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
default: | ||
return exporting | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters