Skip to content

Commit

Permalink
Chart options optional fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoepke authored Jan 25, 2023
1 parent eab70e3 commit 2d89760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConsoleCharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ConsoleCharts {
* @param [options] - An object that contains the following parameters:
* @returns A string.
*/
chart(options){
chart(options = {}){
options.minHeight = options.minHeight || false;
options.pattern = options.pattern || false;
options.type = options.type || "sideways-barchart";
Expand Down Expand Up @@ -167,4 +167,4 @@ class ConsoleCharts {
}

/* for NodeJS */
module.exports = ConsoleCharts;
module.exports = ConsoleCharts;

0 comments on commit 2d89760

Please sign in to comment.