<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: D3.js visual does not render the chart. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/840754#M21325</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to share the report with me? You can send it to mail@datascenarios.nl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Jan Pieter&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 08:02:24 GMT</pubDate>
    <dc:creator>jppp</dc:creator>
    <dc:date>2019-11-08T08:02:24Z</dc:date>
    <item>
      <title>D3.js visual does not render the chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/838045#M21295</link>
      <description>&lt;P&gt;I tried to render D3.js visual code into Power BI, but it does not render any chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help this issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var margin = {top: 20, right: 20, bottom: 20, left: 20},&lt;BR /&gt;width = pbi.width - margin.left - margin.right, // ALTER: Changed fixed width with the 'pbi.width' variable&lt;BR /&gt;height = pbi.height - margin.top - margin.bottom; // ALTER: Changed fixed height with the 'pbi.height' variable&lt;/P&gt;&lt;P&gt;var parseDate = d3.time.format("%d%b%y").parse;&lt;/P&gt;&lt;P&gt;var x = d3.time.scale().range([0, width]);&lt;BR /&gt;var y = d3.scale.linear().range([height, 0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var xAxis = d3.svg.axis().scale(x)&lt;BR /&gt;.orient("bottom").ticks(5);&lt;/P&gt;&lt;P&gt;var yAxisLeft = d3.svg.axis().scale(y)&lt;BR /&gt;.orient("left").ticks(5);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var valueline = d3.svg.line()&lt;BR /&gt;.x(function (d) {return x(d.forecast_rfs);})&lt;BR /&gt;.y(function (d) {return x(d.weight);})&lt;BR /&gt;.interpolate("linear");&lt;/P&gt;&lt;P&gt;var svg = d3.select("#chart")&lt;BR /&gt;.append("svg")&lt;BR /&gt;.attr("width", width + margin.left + margin.right)&lt;BR /&gt;.attr("height", height + margin.top + margin.bottom)&lt;BR /&gt;.append("g")&lt;BR /&gt;.attr("transform", "translate(" + margin.left + "," + margin.top + ")");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// ALTER: Replaced the d3.tsv function with the pbi variant: pbi.dsv&lt;BR /&gt;pbi.dsv(function(data) {&lt;BR /&gt;data.forEach(function(d) {&lt;BR /&gt;d.forecast_rfs = parseDate(d.forecast_rfs);&lt;BR /&gt;d.mod_sap = +d.mod_sap;&lt;BR /&gt;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;x.domain(d3.extent(data, function (d) { return d.forecast_rfs; }));&lt;BR /&gt;y.domain([0, d3.max(data, function(d) { return Math.max(d.weight); })]);&lt;BR /&gt;&lt;BR /&gt;svg.append("path")&lt;BR /&gt;.attr("class", "line")&lt;BR /&gt;.stlye("stroke", "red")&lt;BR /&gt;.attr("d", valueline(data));&lt;BR /&gt;&lt;BR /&gt;svg.append("g")&lt;BR /&gt;.attr("class", "x axis")&lt;BR /&gt;.attr("transform", "translate(" + height + ")")&lt;BR /&gt;.call(xAxis);&lt;/P&gt;&lt;P&gt;svg.append("g")&lt;BR /&gt;.attr("class", "y axis")&lt;BR /&gt;.attr("transform", "translate(" + width + " ,0)")&lt;BR /&gt;.style("fill", "steelblue")&lt;BR /&gt;.call(yAxisLeft);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 01:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/838045#M21295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-06T01:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: D3.js visual does not render the chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/838573#M21300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you add colums to the data fields? And do they have the same name as you use in your code (&lt;SPAN&gt;forecast_rfs,&amp;nbsp;mod_sap&lt;/SPAN&gt;)?&lt;/P&gt;&lt;P&gt;You can take a look at the 'PBI object' (icon with two cubes in the edit mode) on how the data is pushed to the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative you can use 'console.log' to write debug info to the console of the developer tools to see what is happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-JP&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:01:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/838573#M21300</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2019-11-06T11:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: D3.js visual does not render the chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/839312#M21307</link>
      <description>&lt;P&gt;Thank you for your reply. Yes, all the columns have the same name as in my code. But still it does not render.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 02:25:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/839312#M21307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-07T02:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: D3.js visual does not render the chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/840754#M21325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to share the report with me? You can send it to mail@datascenarios.nl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Jan Pieter&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 08:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/D3-js-visual-does-not-render-the-chart/m-p/840754#M21325</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2019-11-08T08:02:24Z</dc:date>
    </item>
  </channel>
</rss>

