public void MyChart()
        {
            var model = new ChartModel();
            var data = model.GetChartData();

            new Chart(400, 200, ChartTheme.Blue)
                .AddTitle("Price enquiries")
                .DataBindTable(data, "X")
                .Write("png");
        }
        public void MyCachedChart()
        {
            const string chartKey = "MyCachedChart";
            var chart = Chart.GetFromCache(chartKey);

            if (chart == null)
            {
                var model = new ChartModel();
                var data = model.GetChartData();

                chart = new Chart(400, 200, ChartTheme.Blue)
                        .AddTitle("Chart cached: " + DateTime.Now)
                        .DataBindTable(data, "X");
                chart.SaveToCache(chartKey,1,false);
            }

            chart.Write("png");
        }