Forum Discussion

satishr's avatar
satishr
Helper III
8 years ago
Solved

Custom Visual Line graph

I'm trying to create a custom visual which has a line graph. I'm trying to create the below D3 line graph but getting type errors.  https://bl.ocks.org/emmasaunders/f55caf3a742aac10a5d44f58374bf343 ...
  • v-viig's avatar
    8 years ago

    To fix the issue you faced you should cast d3.svg.line to LineData by using this code:

    var line = d3.svg.line<LineData>()

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]