static/js/svg.js
// helper for drawing color box and label
helper for drawing color box and label
helper for drawing color box and label
function drawCatCol(color, cat) {
        svg.push(`    <circle fill="${color}" ` +
          `cx="${(legx + legpad + colr).toFixed(3)}" ` +
          `cy="${(legy + colr).toFixed(3)}" ` +
          `r="${(colr).toFixed(3)}" ` + '/>');
        svg.push(`    <text font-size="${clabfs}px" ` +
          'text-anchor="start" dominant-baseline="middle" ' +
          `x="${(legx + legpad * 2 + colr * 2).toFixed(3)}" ` +
          `y="${(legy + colr).toFixed(3)}">` +
          `${cat}</text>`);
        legy += colr * 2 + colgap;
      }
function drawCatCol ( color , cat ) { svg . push ( ` ${ color } ` + ` ${ ( legx + legpad + colr ) . toFixed ( 3 ) } ` + ` ${ ( legy + colr ) . toFixed ( 3 ) } ` + ` ${ ( colr ) . toFixed ( 3 ) } ` + '/>' ) ; svg . push ( ` ${ clabfs } ` + 'text-anchor="start" dominant-baseline="middle" ' + ` ${ ( legx + legpad * 2 + colr * 2 ) . toFixed ( 3 ) } ` + ` ${ ( legy + colr ) . toFixed ( 3 ) } ` + ` ${ cat } ` ) ; legy += colr * 2 + colgap ; }
helper for drawing color box and label
helper for drawing color box and label