Merge pull request #27910 from MeetSherasiya/fix/custom-dashboard-chart-tooltip-value-format
fix: custom dashboard chart tooltip value format
This commit is contained in:
commit
199c27f34e
1 changed files with 6 additions and 0 deletions
|
|
@ -599,6 +599,12 @@ export default class ChartWidget extends Widget {
|
|||
options = this.report_result.chart.options;
|
||||
}
|
||||
|
||||
if (this.chart_doc.chart_type == "Custom" && this.chart_doc.custom_options) {
|
||||
let chart_options = JSON.parse(this.chart_doc.custom_options);
|
||||
fieldtype = chart_options.fieldtype;
|
||||
options = chart_options.options;
|
||||
}
|
||||
|
||||
chart_args.tooltipOptions = {
|
||||
formatTooltipY: (value) =>
|
||||
frappe.format(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue