0

I'm working with NVD3 charts with angular2 following this link. I'm getting line chart fine. In line chart on mouse over tooltip gets shown on Yaxis 3 points.

YAxis have Line lines so three points we need a display on somewhere in the page.We tried to like this

yAxis: {
          axisLabel: 'Voltage (v)',
          tickFormat: function(d){
          this.username  = d3.format('.02f')(d); 
          return d3.format('.02f')(d);
          },
          axisLabelDistance: -10
        }

HTML

<div>
      <nvd3 [options]="options" [data]="data"></nvd3>
      <p>Hello {{username}}</p>
</div>

We are not getting anything. What do I miss?

polkovnikov.ph
  • 6,256
  • 6
  • 44
  • 79
Pavan Alapati
  • 635
  • 2
  • 8
  • 21
  • I don't understand your question. The plunker link you gave seems to be working correctly. What is the problem exactly? – jeznag Jun 15 '17 at 01:17
  • @jeznag thanks for reply .yes that plunker working correctly.On Line chart we are showing tootip,On tootip showing 3 points .We need show those 3 points some where in page like

    Hello {{points}}

    .Please guide to us
    – Pavan Alapati Jun 15 '17 at 06:24

0 Answers0