<?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: Develop custom Calendar View visual using Typescript and D3js in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Develop-custom-Calendar-View-visual-using-Typescript-and-D3js/m-p/1587601#M27129</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252103"&gt;@walid140891&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you didn't define the style of this visual after getting data in the update() function, resulting in the display of this visual as blank.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/zh-cn/power-bi/developer/visuals/develop-circle-card#optional-review-the-code-in-the-visuals-file" target="_self"&gt;https://docs.microsoft.com/zh-cn/power-bi/developer/visuals/develop-circle-card#optional-review-the-code-in-the-visuals-file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 09:59:40 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2021-01-08T09:59:40Z</dc:date>
    <item>
      <title>Develop custom Calendar View visual using Typescript and D3js</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Develop-custom-Calendar-View-visual-using-Typescript-and-D3js/m-p/1582416#M27046</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing my first power bi custom visual using typescript, d3js and node Calendarjs library based on the example that microsoft provides that you can download using powershell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I'm facing is that with the following bunch of code I'm always getting a blank chart in the power bi online platform:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"use strict";

var Calendar = require('calendarjs');

import "core-js/stable";
import "./../style/visual.less";
import powerbi from "powerbi-visuals-api";
import VisualConstructorOptions = powerbi.extensibility.visual.VisualConstructorOptions;
import VisualUpdateOptions = powerbi.extensibility.visual.VisualUpdateOptions;
import IVisual = powerbi.extensibility.visual.IVisual;
import EnumerateVisualObjectInstancesOptions = powerbi.EnumerateVisualObjectInstancesOptions;
import VisualObjectInstance = powerbi.VisualObjectInstance;
import DataView = powerbi.DataView;
import VisualObjectInstanceEnumerationObject = powerbi.VisualObjectInstanceEnumerationObject;
import IVisualHost = powerbi.extensibility.IVisualHost;
import * as d3 from "d3";
type Selection&amp;lt;T extends d3.BaseType&amp;gt; = d3.Selection&amp;lt;T, any, any, any&amp;gt;;

import { VisualSettings } from "./settings";
export class Visual implements IVisual {
    private target: HTMLElement;
    private updateCount: number;
    private settings: VisualSettings;
    private textNode: Text;



    constructor(options: VisualConstructorOptions) {
        console.log('Visual constructor', options);
        this.target = options.element;
        this.updateCount = 0;
        if (document) {
            
            var table = d3.select('body').append('table')
                .attr("style", "margin-left: 250px;"),
                thead = table.append("thead"),
                tbody = table.append("tbody");

            var cal = new Calendar(2021, 0);
            var weeks = cal.monthDays();
            //var weeks = cal.weeks;
            weeks.forEach(function (week) {
                this.table
                    .append('tr')
                    .selectAll('td')
                    .data(week)
                    .enter()
                    .append('td')
                    .text(function (d) {
                        return d &amp;gt; 0 ? d : "";
                    })
            });
        }


        
    }

    public update(options: VisualUpdateOptions) {
        
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:36:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Develop-custom-Calendar-View-visual-using-Typescript-and-D3js/m-p/1582416#M27046</guid>
      <dc:creator>walid140891</dc:creator>
      <dc:date>2021-01-05T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Develop custom Calendar View visual using Typescript and D3js</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Develop-custom-Calendar-View-visual-using-Typescript-and-D3js/m-p/1587601#M27129</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252103"&gt;@walid140891&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you didn't define the style of this visual after getting data in the update() function, resulting in the display of this visual as blank.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/zh-cn/power-bi/developer/visuals/develop-circle-card#optional-review-the-code-in-the-visuals-file" target="_self"&gt;https://docs.microsoft.com/zh-cn/power-bi/developer/visuals/develop-circle-card#optional-review-the-code-in-the-visuals-file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 09:59:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Develop-custom-Calendar-View-visual-using-Typescript-and-D3js/m-p/1587601#M27129</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-01-08T09:59:40Z</dc:date>
    </item>
  </channel>
</rss>

