diff --git a/src/router.js b/src/router.js index 4c871e9..0a0c24c 100644 --- a/src/router.js +++ b/src/router.js @@ -59,7 +59,7 @@ const self = module.exports = { fileDataPromise = getRawDataForDataStructure(JSON_TYPE, components) }else { fileDataPromise = askChartTypeQuestions() - .then((answer) => getRawDataForDataStructure(answer.data_structure, components)); + .then((answer) => getGraphDataFromChartType(answer.chart_type, components)); } fileDataPromise.then((fileData) => createFileAndSave(fileData));