How to use the plottable.Plots.Rectangle function in plottable

To help you get started, we’ve selected a few plottable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github devinit / datahub / src / components / organisms / Charts / components / TreeMap / TreeMap.tsx View on Github external
private renderChart(chartNode: HTMLDivElement, props: TreeMapProps) {
    this.createAxes(props);
    this.plot = new Plots.Rectangle();
    this.processData(props);

    this.plot.renderTo(chartNode);
    this.plot.onAnchor(() => this.onAnchor(this.plot));
    // this.plot.foreground().append('g').append('text').text('Awesome');
  }