gpt4 book ai didi

jquery - 如何隐藏图表上显示的点?

转载 作者:行者123 更新时间:2023-12-03 22:59:52 25 4
gpt4 key购买 nike

我有以下jqPlot图表:

    $(document).ready(function () {
var line1 = new Array();
@foreach (var item in Model)
{
<text>line1.push(["@item.VisitDate.Value.ToString("dd-MMM-yyyy")", @item.count]);</text>
}
var plot1 = $.jqplot('chart1', [line1], { title: '<span style="Color: Green " >Number Of Visits</span>',
axesDefaults: { pad: 1.2 },
axes: {
xaxis: {
renderer: $.jqplot.DateAxisRenderer,
tickOptions: {
formatString: '%d/%b/%Y'
}
},
yaxis: { tickOptions: { formatString: '%.2f'} }
},
highlighter: { show: true, sizeAdjust: 7.5, tooltipLocation: 'nw'
// , formatString: '<b>%s</b>'
}, cursor: { show: true, tooltipOffset: 6 }
})
});

但我需要隐藏当前显示在绘图图表上的数组中每个值的圆形点。换句话说,我需要 jqPplot 图表仅显示一条简单的线,没有任何圆形点、荧光笔或刻度选项等。

最佳答案

要摆脱圆形标记,您需要使用以下选项。

    seriesDefaults: {
showMarker: false
},
axesDefaults: {
showTicks: false,
showTickMarks: false
},

Please see this code sample.

关于jquery - 如何隐藏图表上显示的点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10791642/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com