Skip to content

Commit

Permalink
refactor: improve sublabel for classic palette
Browse files Browse the repository at this point in the history
  • Loading branch information
ktx-abhay committed May 1, 2024
1 parent 52a10b1 commit 1a91dcb
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
:display-value="selectedOptionLabel"
@update:model-value="onColorModeChange"
style="width: 100%"
:popup-content-style="{ height: '300px' }"
:popup-content-style="{ height: '300px', width: '200px' }"
>
<template v-slot:option="props">
<q-item v-bind="props.itemProps">
Expand Down Expand Up @@ -128,13 +128,14 @@ export default defineComponent({
},
{
label: "Palette-Classic (By Series)",
subLabel: "Same color for same series name",
subLabel: "Series with the same name will use the same color",
colorPalette: classicColorPalette,
value: "palette-classic-by-series",
},
{
label: "Palette-Classic",
subLabel: "Random color for each series",
subLabel:
"A random color will be used for each series, regardless of its name",
colorPalette: [
"#5470c6",
"#91cc75",
Expand Down

0 comments on commit 1a91dcb

Please sign in to comment.