static/js/svg.js
// helper for formatting min and max labels
helper for formatting min and max labels
helper for formatting min and max labels
function drawNumLegMinMax(v) {
    const min = v.zero ? scaleNum(0, unscale(v.scale)) : v.min;
    const max = v.max;
    svg.push(`    <text font-size="${tickfs}px" ` +
      'text-anchor="start" dominant-baseline="hanging" ' +
      `x="${(legx + legpad).toFixed(3)}" ` +
      `y="${(baseline + 2).toFixed(3)}"` +
      `>${formatNum(min, 3)}</text>`);
    svg.push(`    <text font-size="${tickfs}px" ` +
      'text-anchor="end" dominant-baseline="hanging" ' +
      `x="${(legx + legw - legpad).toFixed(3)}" ` +
      `y="${(baseline + 2).toFixed(3)}"` +
      `>${formatNum(max, 3)}</text>`);
  }
function drawNumLegMinMax ( v ) { const min = v . zero ? scaleNum ( 0 , unscale ( v . scale ) ) : v . min ; const max = v . max ; svg . push ( ` ${ tickfs } ` + 'text-anchor="start" dominant-baseline="hanging" ' + ` ${ ( legx + legpad ) . toFixed ( 3 ) } ` + ` ${ ( baseline + 2 ) . toFixed ( 3 ) } ` + ` ${ formatNum ( min , 3 ) } ` ) ; svg . push ( ` ${ tickfs } ` + 'text-anchor="end" dominant-baseline="hanging" ' + ` ${ ( legx + legw - legpad ) . toFixed ( 3 ) } ` + ` ${ ( baseline + 2 ) . toFixed ( 3 ) } ` + ` ${ formatNum ( max , 3 ) } ` ) ; }
helper for formatting min and max labels
helper for formatting min and max labels