Пример #1
0
        public static void Run()
        {
            var xmlGraphs   = new XmlGraphs();
            var graphViewer = new JsonGraphs(xmlGraphs);

            var jsonData = "data in json text";

            graphViewer.DisplayBarChart(jsonData);
            graphViewer.DisplayPieChart(jsonData);
        }
Пример #2
0
 internal JsonGraphs(XmlGraphs adaptee)
 {
     this.adaptee = adaptee;
 }