如何从 tooltip/label 中删除 x 轴索引
How to remove x-axis index from the tooltip/label
如何从条形图 (1,) 中删除此值我正在使用 PrimeFaces,而 jqPlot 希望在将鼠标悬停在条形图上时仅保留第二个值。
我已经尝试在 Internet 上搜索各种信息,但没有找到有关此自定义的任何信息。通过下图,我更好地说明了我想从图表中的条形中删除哪个值。
function skinBarImpurezasMinerais() {
this.cfg.shadow = false;
this.cfg.title = '';
//this.cfg.seriesColors = ['#e30910', '#FFC107'];
this.cfg.grid = {
background: '#ffffff',
borderColor: '#ffffff',
gridLineColor: '#F5F5F5',
shadow: false
};
this.cfg.axesDefaults = {
borderWidth: 0.1,
borderColor: 'bdbdbd',
rendererOptions: {
textColor: '#666F77'
}
};
this.cfg.seriesDefaults = {
shadow: false,
lineWidth: 1,
stackSeries: true,
renderer: $.jqplot.BarRenderer,
pointLabels: {show: true},
rendererOptions: {
varyBarColor: true,
barWidth: 50,
},
markerOptions: {
shadow: false,
size: 7,
style: 'circle'
}
}
}
谢谢!
我找到了解决方案..我必须在下面添加块
highlighter: { show: true,
showTooltip: true, // show a tooltip with data point values.
tooltipLocation: 'nw', // location of tooltip: n, ne, e, se, s, sw, w, nw.
tooltipAxes: 'y', // which axis values to display in the tooltip, x, y or both.
lineWidthAdjust: 2.5 // pixels to add to the size line stroking the data point marker
}
如何从条形图 (1,) 中删除此值我正在使用 PrimeFaces,而 jqPlot 希望在将鼠标悬停在条形图上时仅保留第二个值。
我已经尝试在 Internet 上搜索各种信息,但没有找到有关此自定义的任何信息。通过下图,我更好地说明了我想从图表中的条形中删除哪个值。
function skinBarImpurezasMinerais() {
this.cfg.shadow = false;
this.cfg.title = '';
//this.cfg.seriesColors = ['#e30910', '#FFC107'];
this.cfg.grid = {
background: '#ffffff',
borderColor: '#ffffff',
gridLineColor: '#F5F5F5',
shadow: false
};
this.cfg.axesDefaults = {
borderWidth: 0.1,
borderColor: 'bdbdbd',
rendererOptions: {
textColor: '#666F77'
}
};
this.cfg.seriesDefaults = {
shadow: false,
lineWidth: 1,
stackSeries: true,
renderer: $.jqplot.BarRenderer,
pointLabels: {show: true},
rendererOptions: {
varyBarColor: true,
barWidth: 50,
},
markerOptions: {
shadow: false,
size: 7,
style: 'circle'
}
}
}
谢谢!
我找到了解决方案..我必须在下面添加块
highlighter: { show: true,
showTooltip: true, // show a tooltip with data point values.
tooltipLocation: 'nw', // location of tooltip: n, ne, e, se, s, sw, w, nw.
tooltipAxes: 'y', // which axis values to display in the tooltip, x, y or both.
lineWidthAdjust: 2.5 // pixels to add to the size line stroking the data point marker
}