【问题标题】:How can I hide the points that are displayed on the plot chart?如何隐藏绘图图表上显示的点?
【发布时间】:2012-05-29 00:03:12
【问题描述】:

我有以下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 图表只显示一条简单的线,没有任何圆形点、荧光笔或刻度选项等。

【问题讨论】:

    标签: jquery jqplot


    【解决方案1】:

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

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

    Please see this code sample.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-22
      • 2021-08-01
      • 2020-01-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多