3.0.1 • Published 10 months ago

league-charts v3.0.1

Weekly downloads
60
License
MIT
Repository
github
Last release
10 months ago

League Charts

Generate League of Legends charts

Demo

Storybook: https://league-charts.vercel.app/storybook/

Example

const leagueCharts = new LeagueCharts("riot-api-key");
leagueCharts.barChart({
  chartStat: "totalDamageDealtToChampions",
  chartContext: document.getElementById("champion-damage-chart"),
  gameName: "AudreyRuston",
  tagLine: "NA1",
  chartOptions: {
    responsive: false,
  },
});
<canvas id="champion-damage-chart" width="750" height="500" />

bar chart screenshot

const leagueCharts = new LeagueCharts("riot-api-key");
leagueCharts.lineChart({
  chartStat: "totalGold",
  chartContext: document.getElementById("gold-advantage-chart"),
  gameName: "AudreyRuston",
  tagLine: "NA1",
  chartOptions: {
    responsive: false,
  },
});
<canvas id="gold-advantage-chart" width="800" height="400" />

line chart screenshot

  const leagueCharts = new LeagueCharts("riot-api-key");
  leagueCharts.scoreboard({
    chartContext: document.getElementById("scoreboard"),
    gameName: "AudreyRuston",
    tagLine: "NA1",
  });
<canvas id="scoreboard" width="800" height="450" />

scoreboard screenshot

3.0.1

10 months ago

3.0.0

10 months ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago