2.2.1 • Published 2 years ago

league-charts v2.2.1

Weekly downloads
60
License
MIT
Repository
github
Last release
2 years 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"),
  summonerName: "AudreyRuston",
  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"),
  summonerName: "AudreyRuston",
  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"),
    summonerName: "AudreyRuston",
  });
<canvas id="scoreboard" width="800" height="450" />

scoreboard screenshot

2.2.1

2 years ago

2.2.0

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago