import { Component, NgZone, ElementRef, Input, Output, EventEmitter, OnChanges, AfterViewInit } from "@angular/core";
import { Portlet } from "../../portlet/portlet";
import { BaseAmChart } from "./baseAmChart";
import * as am4core from "@amcharts/amcharts4/core";
import * as am4charts from "@amcharts/amcharts4/charts";
import * as am4plugins_forceDirected from "@amcharts/amcharts4/plugins/forceDirected";
import am4themes_material from "@amcharts/amcharts4/themes/material";
export type ChartTypes = "default" | "img" | "svg";
/** linkWith sampleData
*
* [{
"name": "First",
"value": 1,
"link": ["Second","Third"]
}, {
"name": "Second",
"value": 1,
"link": ["Third"]
}, {
"name": "Third",
"value": 1,
"link": ["First"]
}]
*/
@Component({
selector: "rd-amchart-bubble-tree",
template: `
`
})
export class AmChartBubbleTree extends BaseAmChart implements OnChanges, AfterViewInit {
constructor(zone: NgZone, public element: ElementRef, portlet: Portlet) {
super(zone, element, portlet);
}
@Input("rd-data") data: Array