1

jqplot ドーナツ チャートにカスタム div があります。そのdivの上にマウスを置くと、グラフの特定の領域を強調表示したかったのです。どうすればそれができますか?

クラス "custom_legends" を持つ私の div にはカスタムの凡例があり、それらの凡例にカーソルを合わせると、それぞれのチャート領域を強調表示したいと考えています。

以下は私のコードです:

<script class="code" type="text/javascript">;   
  var _chart5_plot_properties;  
  _chart5_plot_properties = {
       title: " ",
       seriesColors: ['.$color_str.'],
       "seriesDefaults":{
          renderer:wcjQuery.jqplot.DonutRenderer,              
          rendererOptions:{
            sliceMargin: 0,
            innerDiameter: 200,
            startAngle: -90,
            barPadding: 0,
            padding: 3,
          }
      },
      grid: {
        shadow: false,
        drawBorder: false,
        shadowColor: "transparent"
      },
      highlighter: {
        show: true,  
        formatString: "%s",
        useAxesFormatters: false,
        showDataLabels: true,
        tooltipLocation: "s"
      },
      legend: {
        show: false
      }
  }

  plot2 = wcjQuery.jqplot("chart2", $chart_style_params, _chart5_plot_properties)';
</script>

<div id="chart2"></div>
<div class="custom_legends"></div>
4

0 に答える 0