diff --git a/README.md b/README.md index 061fa9b..4259ca0 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ const data = [ { label: "label", value: 2, color: "purple" }, { label: "label", value: 2, color: "marine" } ]; -const chart = new Chartscii(data, { colorLabels: true }); +const chart = new Chartscii(data, { colorLabels: true, valueLabels: true }); console.log(chart.create()); ``` @@ -140,7 +140,7 @@ const options: ChartOptions = { | ----------- | ----------------------------------------------------------------------------------------------------------- | -------------------- | -------------------------------------------------------------- | | percentage | calculate and show percentage data | `boolean` | `false` | | colorLabels | color labels with provided color per label, or color provided to option | `boolean` | `false` | -| valueLabels | show values of each bar | `boolean` | `true` | +| valueLabels | show values of each bar | `boolean` | `false` | | sort | sort the input data | `boolean` | `false` | | reverse | reverse the input data | `boolean` | `false` | | naked | don’t print chart structure ascii characters | `boolean` | `false` | diff --git a/branding/shellfie.js b/branding/shellfie.js index 6879be6..0363d4d 100644 --- a/branding/shellfie.js +++ b/branding/shellfie.js @@ -29,8 +29,8 @@ const data = [ { label: "label", value: 1, color: "pink" }, { label: "label", value: 2, color: "purple" }, { label: "label", value: 1.5, color: "marine" }, - { label: "label", value: 3, color: "red" }, - { label: "label", value: 2.5, color: "blue" } + { label: "label", value: 3, color: "orange" }, + { label: "label", value: 2.5, color: "green" } ]; const chart = new Chartscii(data, { // height: 10 @@ -40,7 +40,8 @@ const chart = new Chartscii(data, { // barSize: 1, padding: 1, barSize: 1, - valueLabels: true + valueLabels: true, + colorLabels: true, // naked: true, // valueLabels: true, // fill: '░', diff --git a/shellfies/chartscii_chartpoint.png b/shellfies/chartscii_chartpoint.png index 878d9eb..f25cf44 100644 Binary files a/shellfies/chartscii_chartpoint.png and b/shellfies/chartscii_chartpoint.png differ