Outils pour utilisateurs

Outils du site


test

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
test [2021/02/23 11:51]
vanlindtmarc créée
test [2021/02/23 12:57] (Version actuelle)
vanlindtmarc
Ligne 1: Ligne 1:
-<achart align="right" width=50% +<achart> 
-  +
- +          series: [
-Promise.all([ +
-  loadData( +
-    "https://s3.eu-central-1.amazonaws.com/fusion.store/ft/data/annotating-multiple-data-points-data.json" +
-  ), +
-  loadData( +
-    "https://s3.eu-central-1.amazonaws.com/fusion.store/ft/schema/annotating-multiple-data-points-schema.json" +
-  ) +
-]).then(function(res) { +
-  const data = res[0]; +
-  const schema = res[1]; +
- +
-  const dataStore = new FusionCharts.DataStore(); +
-  const dataSource = { +
-    chart: {}, +
-    caption: { +
-      text: "Interest Rate Comparison" +
-    }, +
-    subcaption: { +
-      text: "USA and Canada" +
-    }, +
-    yaxis: [ +
-      { +
-        plot: [+
           {           {
-            value"Federal Reserve Bank"+            data
-            type"line" +              { 
-          }, +                x: 'Code'
-          +                y[ 
-            value"Bank of Canada"+                  new Date('2019-03-02').getTime(), 
-            type"line"+                  new Date('2019-03-04').getTime() 
 +                ] 
 +              }, 
 +              
 +                x'Test'
 +                y
 +                  new Date('2019-03-04').getTime(), 
 +                  new Date('2019-03-08').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Validation', 
 +                y: [ 
 +                  new Date('2019-03-08').getTime(), 
 +                  new Date('2019-03-12').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Deployment', 
 +                y: [ 
 +                  new Date('2019-03-12').getTime(), 
 +                  new Date('2019-03-18').getTime() 
 +                ] 
 +              } 
 +            ]
           }           }
         ],         ],
-        format: { +          chart: { 
-          suffix"%"+          height350, 
 +          type: 'rangeBar'
         },         },
-        title"Interest Rate " +        plotOptions: { 
-      } +          bar: { 
-    ], +            horizontaltrue 
-    datamarker: [ +          } 
-      { +        }, 
-        value: "Bank of Canada", +        xaxis: { 
-        time: "Aug-1981", +          type'datetime' 
-        timeformat: "%b-%Y", +        } 
-        tooltext: +        } 
-          "To curb the high double digit inflation rate, Bank of Canada had to increase he interest rate to over 20%" +</achart>
-      }, +
-      { +
-        value"Bank of Canada", +
-        time: "Jun-2010", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "Seeing the balance sheet expand to over $80 Billion after the financial crisis, Bank Of Canada started increasing the interest rates." +
-      }, +
-      +
-        value: "Bank of Canada", +
-        time: "Nov-1996", +
-        timeformat: "%b-%Y", +
-        tooltext+
-          "The reduced interest rate propelled business investments in Canada." +
-      }+
-      { +
-        value: "Bank of Canada", +
-        time: "May-1990", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "To fight inflationary pressure, interest rate reached around 15%" +
-      }, +
-      { +
-        value"Federal Reserve Bank", +
-        time: "Mar-1980", +
-        identifier: "H", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "As a part of credit control program, under the leadership of Paul Volcker, the Fed tightened the money supply, allowing the federal fund rates to approach 20 percent." +
-      }, +
-      { +
-        value: "Federal Reserve Bank", +
-        time: "Aug-1982", +
-        identifier: "L", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "The FED eases off the monetary brakes, allowing interest rates to fall and the economy to begin a strong recovery." +
-      }, +
-      { +
-        value"Federal Reserve Bank", +
-        time: "Oct-1987", +
-        identifier: "L", +
-        timeformat: "%b-%Y", +
-        tooltext: "The FED is forced to ease rate after the stock market crash." +
-      }+
-      { +
-        value: "Federal Reserve Bank", +
-        time: "May-1989", +
-        identifier: "H", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "Liquidity problem forced the Fed to increase rate to nearly 10%." +
-      }, +
-      { +
-        value: "Federal Reserve Bank", +
-        time: "Sept-1992", +
-        identifier: "L", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "To fight the jobless economy growth the Fed had to reduce the interest rate to 3%." +
-      }, +
-      { +
-        value: "Federal Reserve Bank", +
-        time: "Jun-2003", +
-        identifier: "L", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "Struggling to revive the economy, the FED cuts it’s benchmark rate to 1%." +
-      }, +
-      { +
-        value: "Federal Reserve Bank", +
-        time: "Sep-2007", +
-        identifier: "L", +
-        timeformat: "%b-%Y", +
-        tooltext: "Fed started reducing the Federal Fund Rate." +
-      }, +
-      { +
-        value: "Federal Reserve Bank", +
-        time: "Dec-2008", +
-        identifier: "L", +
-        timeformat: "%b-%Y", +
-        tooltext: +
-          "Fed reduced the interest rates to sub 0.25% to manage the menace of longest economic downturn since World War 2" +
-      } +
-    ] +
-  }; +
-  dataSource.data = dataStore.createDataTable(data, schema);+
  
-  new FusionCharts({ 
-    type: "timeseries", 
-    renderAt: "chart-container", 
-    width: "100%", 
-    height: "500", 
-    dataSource: dataSource 
-  }).render(); 
-}); 
- 
-  } 
-</achart> 
test.1614077511.txt.gz · Dernière modification: 2021/02/23 11:51 de vanlindtmarc