MCPcopy Index your code
hub / github.com/tensorflow/tfjs / yScale

Function yScale

tfjs-vis/src/render/linechart.ts:97–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 const options = Object.assign({}, defaultOpts, opts);
96
97 const yScale = (): {}|undefined => {
98 if (options.zoomToFit) {
99 return {'zero': false};
100 } else if (options.yAxisDomain != null) {
101 return {'domain': options.yAxisDomain};
102 }
103 return undefined;
104 };
105
106 const sharedEncoding = {
107 x: {

Callers 1

linechartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…