Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Chart(monthlyCtx, {
- type: "line",
- data: {
- labels: monthlyLabels,
- label: "",
- datasets: [
- {
- data: monthly,
- borderWidth: 2,
- borderColor: "#ff5200",
- fill: true,
- pointRadius: 0
- }
- ]
- },
- options: {
- tooltips: {
- enabled: false
- },
- responsive: true,
- scales: {
- xAxes: [
- {
- display: true,
- type: "time",
- time: {
- parser: "YYYY-MM-DD HH:mm:ss",
- unit: "month",
- displayFormats: {
- day: "DD.MM",
- month: "MM.YYYY"
- }
- },
- distribution: "linear",
- scaleLabel: {
- display: true,
- labelString: "miesiąc",
- fontStyle: "bold"
- },
- ticks: {
- maxRotation: 90,
- minRotation: 45
- }
- }
- ],
- yAxes: [
- {
- ticks: ifDataIsAvailableShowChart(monthly, 2)
- }
- ]
- },
- legend: {
- display: false
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement