ChangeGraph

    0

    0

    paolo costantini

    The code looks for a chartType and sets it to the appropriate type.

    Library: angular

    Pieces for VS Code
      changeChart(){
      
        if(this.chartType == "bar"){
          this.chartType = "line";
        } else if(this.chartType == "line") {
          this.chartType = "radar";
        } else if(this.chartType == "radar") {
          this.chartType = "bar";
        } else {
          this.chartType = "area";
        }
        this.loadChartOptions();
        //this.loadJSONChart(this.chartData);
      } 
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.