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
Dernière révision Les deux révisions suivantes
test [2021/02/23 11:51]
vanlindtmarc créée
test [2021/02/23 12:56]
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"+            name'Bob'
-            type"line"+            data
 +              { 
 +                x: 'Design', 
 +                y: [ 
 +                  new Date('2019-03-05').getTime(), 
 +                  new Date('2019-03-08').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Code', 
 +                y: [ 
 +                  new Date('2019-03-02').getTime(), 
 +                  new Date('2019-03-05').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Code', 
 +                y: [ 
 +                  new Date('2019-03-05').getTime(), 
 +                  new Date('2019-03-07').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Test', 
 +                y: [ 
 +                  new Date('2019-03-03').getTime(), 
 +                  new Date('2019-03-09').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Test', 
 +                y: [ 
 +                  new Date('2019-03-08').getTime(), 
 +                  new Date('2019-03-11').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Validation', 
 +                y: [ 
 +                  new Date('2019-03-11').getTime(), 
 +                  new Date('2019-03-16').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Design', 
 +                y: [ 
 +                  new Date('2019-03-01').getTime(), 
 +                  new Date('2019-03-03').getTime() 
 +                ] 
 +              } 
 +            ]
           },           },
           {           {
-            value"Bank of Canada"+            name'Joe'
-            type"line"+            data
 +              { 
 +                x: 'Design', 
 +                y: [ 
 +                  new Date('2019-03-02').getTime(), 
 +                  new Date('2019-03-05').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Test', 
 +                y: [ 
 +                  new Date('2019-03-06').getTime(), 
 +                  new Date('2019-03-16').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Code', 
 +                y: [ 
 +                  new Date('2019-03-03').getTime(), 
 +                  new Date('2019-03-07').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Deployment', 
 +                y: [ 
 +                  new Date('2019-03-20').getTime(), 
 +                  new Date('2019-03-22').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Design', 
 +                y: [ 
 +                  new Date('2019-03-10').getTime(), 
 +                  new Date('2019-03-16').getTime() 
 +                ] 
 +              } 
 +            ] 
 +          }, 
 +          { 
 +            name: 'Dan', 
 +            data: [ 
 +              { 
 +                x: 'Code', 
 +                y: [ 
 +                  new Date('2019-03-10').getTime(), 
 +                  new Date('2019-03-17').getTime() 
 +                ] 
 +              }, 
 +              { 
 +                x: 'Validation', 
 +                y: [ 
 +                  new Date('2019-03-05').getTime(), 
 +                  new Date('2019-03-09').getTime() 
 +                ] 
 +              }, 
 +            ]
           }           }
         ],         ],
-        format: { +          chart: { 
-          suffix"%"+          height450, 
 +          type: 'rangeBar'
         },         },
-        title"Interest Rate " +        plotOptions{ 
-      } +          bar: { 
-    ], +            horizontaltrue
-    datamarker+            barHeight'80%' 
-      +          } 
-        value"Bank of Canada"+        }
-        time"Aug-1981", +        xaxis{ 
-        timeformat: "%b-%Y", +          type'datetime' 
-        tooltext: +        }, 
-          "To curb the high double digit inflation rate, Bank of Canada had to increase he interest rate to over 20%" +        stroke{ 
-      }+          width1 
-      { +        }
-        value: "Bank of Canada"+        fill: { 
-        time"Jun-2010", +          type'solid'
-        timeformat"%b-%Y", +          opacity0.6 
-        tooltext: +        }, 
-          "Seeing the balance sheet expand to over $80 Billion after the financial crisis, Bank Of Canada started increasing the interest rates." +        legend: { 
-      }, +          position'top'
-      { +          horizontalAlign'left' 
-        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> </achart>
 +
test.txt · Dernière modification: 2021/02/23 12:57 de vanlindtmarc