MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / _createChart

Function _createChart

client/src/containers/AddChart/AddChart.jsx:176–184  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

174 };
175
176 const _createChart = async (name) => {
177 const chartData = {
178 ...defaultChart,
179 name,
180 layout: _getNewChartLayout(charts),
181 };
182
183 return dispatch(createChart({ project_id: params.projectId, data: chartData })).unwrap();
184 };
185
186 const _onCreateFromDataset = async (dataset) => {
187 setCreatingDatasetId(dataset.id);

Callers 2

_onCreateFromDatasetFunction · 0.85
_onCreateDatasetFunction · 0.85

Calls 3

createChartFunction · 0.90
_getNewChartLayoutFunction · 0.85
dispatchFunction · 0.50

Tested by

no test coverage detected