Skip to content

Commit

Permalink
Merge branch 'datalabels' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Jul 12, 2024
2 parents 7a4a27e + a1bf09d commit 3860209
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions frontend/src/stores/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export const useChartsStore = defineStore('charts', () => {
return {
pointStyle,
color,
fill,
fill
}
}

Expand All @@ -426,8 +426,8 @@ export const useChartsStore = defineStore('charts', () => {
fill: styles.fills,
color: styles.colors,
borderColor: styles.colors,
backgroundColor: 'rgb(75, 192, 192)',
borderWidth: getBorderWidth,
backgroundColor: 'rgb(75, 192, 192)'
// borderWidth: getBorderWidth,
}
}

Expand All @@ -444,18 +444,18 @@ export const useChartsStore = defineStore('charts', () => {
return 5
}

function getBorderWidth(context) {
// if the data point is selected, make the border width larger
const index = context.dataIndex
if (index == null) {
return 1
}
const dataPoint = context.dataset.data[index]
if (dataPoint.selected) {
return 5
}
return 1
}
// function getBorderWidth(context) {
// // if the data point is selected, make the border width larger
// const index = context.dataIndex
// if (index == null) {
// return 1
// }
// const dataPoint = context.dataset.data[index]
// if (dataPoint.selected) {
// return 5
// }
// return 1
// }

const getNodeDataSetStyle = (dataSet, colorScale) => {
console.log('Getting node data set style', dataSet)
Expand Down

0 comments on commit 3860209

Please sign in to comment.