Skip to content

Commit

Permalink
Clear color-mix
Browse files Browse the repository at this point in the history
  • Loading branch information
tanerengiiin committed Aug 1, 2024
1 parent 07c2dbb commit 5f839cc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions apps/showcase/components/landing/samples/OverviewApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,32 +240,37 @@ export default {
this.$refs.menu.toggle(event);
},
setChartData(timeUnit) {
const documentStyle = getComputedStyle(document.documentElement);
const datasets = this.createDatasets(timeUnit)
const documentStyle = getComputedStyle(document.documentElement);
const primary200=documentStyle.getPropertyValue('--p-primary-200')
const primary300=documentStyle.getPropertyValue('--p-primary-300')
const primary400=documentStyle.getPropertyValue('--p-primary-400')
const primary500=documentStyle.getPropertyValue('--p-primary-500')
const primary600=documentStyle.getPropertyValue('--p-primary-600')
return {
labels: datasets.labels,
datasets: [
{
type: 'bar',
label: 'Personal Wallet',
backgroundColor: 'color-mix(in srgb, ' + documentStyle.getPropertyValue('--p-primary-400') + ' 100%, #fff)',
hoverBackgroundColor: 'color-mix(in srgb, ' + documentStyle.getPropertyValue('--p-primary-600') + ' 100%, #fff)',
backgroundColor: primary400,
hoverBackgroundColor: primary600,
data: datasets.data[0],
barThickness: 32
},
{
type: 'bar',
label: 'Corporate Wallet',
backgroundColor: 'color-mix(in srgb, ' + documentStyle.getPropertyValue('--p-primary-300') + ' 100%, transparent)',
hoverBackgroundColor: 'color-mix(in srgb, ' + documentStyle.getPropertyValue('--p-primary-500') + ' 100%, #fff)',
backgroundColor: primary300,
hoverBackgroundColor: primary500,
data: datasets.data[1],
barThickness: 32
},
{
type: 'bar',
label: 'Investment Wallet',
backgroundColor: 'color-mix(in srgb, ' + documentStyle.getPropertyValue('--p-primary-200') + ' 100%, transparent)',
hoverBackgroundColor: 'color-mix(in srgb, ' + documentStyle.getPropertyValue('--p-primary-400') + ' 100%, #fff)',
backgroundColor: primary200,
hoverBackgroundColor: primary400,
data: datasets.data[2],
borderRadius: {
topLeft: 8,
Expand Down

0 comments on commit 5f839cc

Please sign in to comment.