在 devextremecharts(dxChart) 中显示系列标签和值

Display both the series label and the value in a devextremecharts(dxChart)

我正在使用具有模块化概念的 devextreme 图表(js 图表)。

在我的一个条形图中,我希望显示一个工具提示,悬停时会显示 SeriesBar 的名称及其所具有的值。 IE。 让我们假设我的图表有 3 个条形图,分别描绘了美国、英国、法国的人口。 当我将鼠标悬停在美国(酒吧)上时,我希望我的工具提示显示

USA:10000

同样适用于英国和法国

$("#myChartDiv").dxChart({
            dataSource: dataset,
            commonSeriesSettings: {
                argumentField: 'DimensionValue',
                valueField: 'MetricValue', 
                label: {
                    visible: true,
                    format: {
                        type: "fixedPoint",
                        precision: Barnumberprecision
                    }
                },
                type: 'bar',

            },
            seriesTemplate: {
                nameField: "SurveyYear",

                },
                valueAxis: {
                    title: {
                        text: Title
                    },
                    position: "left"
                },
            argumentAxis: {

                label: {
                    overlappingBehavior: { mode: Barlabeloverlappingmode, rotationAngle: Barlabelrotateangle }
                }
            },
            tooltip: {
                enabled: true,
                location: "edge",

                customizeText: function () {
                    return this.seriesName;
                },
                format: {
                    //type: "fixedPoint",
                    precision: Barnumberprecision
                }              
            },
            legend: {
                verticalAlignment: BarlegendverticalAlignment,
                horizontalAlignment: BarlegendhorizontalAlignment
            }
        });

我浏览了 devextreme 网站,但没有发现 属性 对我有用,或者可能是我没有正确使用它。
有人可以告诉我哪个 属性 满足我的要求吗?

我建议你阅读 tooltip 文档,在那里你会找到可用于显示特定值的属性名称。

参考这个 DX 线程:dxChart - How to customize a tooltip

 tooltip: {
        enabled: true,
        customizeTooltip: function (point) {
                return {
                    text: point.value+' of '+point.argument+' against '+point.seriesName
                }
        }
    }