From 690eda07147dce39efb2c15474ec8f6b5379969c Mon Sep 17 00:00:00 2001 From: David Johnson Date: Tue, 13 Apr 2021 21:41:48 -0400 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4f6686e..ff039ed 100644 --- a/README.md +++ b/README.md @@ -34,10 +34,10 @@ You now have a linked library that can be accessed by your app! A sample application called "Sample.vala" is included in this repo, it contains a simple application to show off how Caroline works. Below is a bare-bones example of how to interface with Caroline. ``` -var carolineWidget = new Caroline ( +var carolineWidget = new Caroline.without_colors ( x, //dataX yArray, //dataY - "scatter", //chart type + chartTypes, //chart types true, //yes or no for generateColors function (needed in the case of the pie chart), true, //true for generating hue based colors, and false for random colors false // yes or no for scatter plot labels @@ -60,10 +60,9 @@ for (int i = 0; i < cArray.length; i++){ } -var carolineWidget = new Caroline ( +var carolineWidget = new Caroline.with_colors ( x, //dataX yArray, //dataY - "scatter", //chart type chartColorArray, false, //yes or no for generateColors function (needed in the case of the pie chart), false, //true for generating hue based colors, and false for random colors