quickchart-csharp/QuickChartExamples/ShortUrl.cs
2020-11-26 17:54:03 -05:00

28 lines
No EOL
670 B
C#

using System;
using QuickChart;
namespace QuickChartExamples
{
public class ShortUrlExample
{
static void Main(string[] args) {
Console.WriteLine("Fetching short url...");
Chart qc = new Chart();
qc.Width = 500;
qc.Height = 300;
qc.Config = @"{
type: 'bar',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Users',
data: [50, 60, 70, 180]
}]
}
}";
Console.WriteLine(qc.GetShortUrl());
}
}
}