How can I hide the points that are displayed on the plot chart?

北战南征 提交于 2019-12-30 20:53:05

问题


I have the following jqPlot chart:

    $(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 }
      })    
   });

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..


回答1:


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

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

Please see this code sample.



来源:https://stackoverflow.com/questions/10791642/how-can-i-hide-the-points-that-are-displayed-on-the-plot-chart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!