Skip to content

Commit

Permalink
feat: Add data labels support for row charts
Browse files Browse the repository at this point in the history
  • Loading branch information
UmakanthKaspa committed Dec 30, 2024
1 parent d24630f commit 1719c63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/widgets/AxisChart/getAxisChartOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function makeOptions(chartType, labels, datasets, options) {

label: {
show: options.show_data_labels,
position: 'top',
position: 'inside',
formatter: (params) => {
const value = params.value;
return !isNaN(value) ? getShortNumber(value, 1) : value;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/widgets/Row/RowOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ const props = defineProps({
<AxisChartOptions seriesType="bar" v-model:options="options" :columns="props.columns" />
<Checkbox v-model="options.stack" label="Stack Values" />
<Checkbox v-model="options.roundedBars" label="Rounded Bars" />
<Checkbox v-model="options.show_data_labels" label="Show Data Labels" />
</div>
</template>

0 comments on commit 1719c63

Please sign in to comment.