MCPcopy Create free account
hub / github.com/chartjs/Chart.js / impliedScaleConfig

Function impliedScaleConfig

test/specs/core.config.spec.js:710–717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708 // derived object of the defaults a scale takes.
709 describe('stored and derived scale options', function() {
710 const impliedScaleConfig = () => ({
711 type: 'bar',
712 data: {
713 labels: ['a', 'b', 'c'],
714 datasets: [{data: [10, 11, 12]}, {type: 'line', data: [10, 11, 12], yAxisID: 'y1'}]
715 },
716 options: {scales: {y: {min: 5}}}
717 });
718 const record = (chart, id) => chart.config._scaleRecords.get(chart.config.options.scales[id]);
719
720 it('should record which entries only a dataset implies, also after updates', function() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected