Skip to content

Commit

Permalink
chore: remove files from failed initial re-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Sep 18, 2024
1 parent 5604f98 commit 8420e66
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 647 deletions.
2 changes: 0 additions & 2 deletions src/visualizations/config/adapters/dhis_highcharts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,5 @@ export default function ({ store, layout, el, extraConfig, extraOptions }) {
// force apply extra config
Object.assign(config, extraConfig)

console.log('CONFIG', objectClean(config))

return objectClean(config)
}
1 change: 0 additions & 1 deletion src/visualizations/config/adapters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ import dhis_highcharts from './dhis_highcharts/index.js'
export default {
dhis_highcharts,
dhis_dhis,
dhis_singleValue: dhis_dhis,
}
2 changes: 0 additions & 2 deletions src/visualizations/config/generators/dhis/singleValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ const generateValueSVG = ({
// embed icon to allow changing color
// (elements with fill need to use "currentColor" for this to work)
const iconSvgNode = document.createElementNS(svgNS, 'svg')
console.log('old', iconSize)
iconSvgNode.setAttribute('viewBox', '0 0 48 48')
iconSvgNode.setAttribute('width', iconSize)
iconSvgNode.setAttribute('height', iconSize)
Expand Down Expand Up @@ -468,7 +467,6 @@ export default function (
parentEl,
{ dashboard, legendSets, fontStyle, noData, legendOptions, icon }
) {
console.log('CONFIG OLD', config)
const legendSet = legendOptions && legendSets[0]
const legendColor =
legendSet && getColorByValueFromLegendSet(legendSet, config.value)
Expand Down
36 changes: 1 addition & 35 deletions src/visualizations/config/generators/highcharts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ function drawLegendSymbolWrap() {
)
}

export function highcharts(config, el) {
export default function (config, el) {
if (config) {
config.chart.renderTo = el || config.chart.renderTo

// silence warning about accessibility
config.accessibility = { enabled: false }
console.log('Homt ie hier?', config)
if (config.lang) {
H.setOptions({
lang: config.lang,
Expand All @@ -90,36 +89,3 @@ export function highcharts(config, el) {
return new H.Chart(config)
}
}

export function singleValue(config, el, extraOptions) {
return H.chart(el, {
accessibility: { enabled: false },
chart: {
backgroundColor: 'transparent',
events: {
load: function () {
renderSingleValueSvg(config, el, extraOptions, this)
},
},
animation: false,
},
credits: { enabled: false },
exporting: {
enabled: true,
error: (options, error) => {
console.log('options', options)
console.log(error)
},
chartOptions: {
title: {
text: null,
},
},
},
lang: {
noData: null,
},
noData: {},
title: null,
})
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8420e66

Please sign in to comment.