如何隐藏绘图图上显示的点? [英] How can I hide the points that are displayed on the plot chart?

查看:136
本文介绍了如何隐藏绘图图上显示的点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下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图表仅显示一条简单的直线,而没有任何圆点,突出显示或刻度选项等.

but I need to hide the Circular points that are currently displayed on the plot chart for each value in the array. In other words I need the jqPplot chart to show only a simple line without any circular points, highlighter or tickoptions, etc..

推荐答案

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

To get rid off the circular markers you need to use the below options.

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

请参阅此代码示例.

这篇关于如何隐藏绘图图上显示的点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆