src/JsPlot3D.js
/**
     * appends the legend to a specific container. It is already generated at this point.
     * 
     * Make sure to style it using the css of your website because otherwise the colored
     * span elements will not be visible.
     * 
     * @param {DOM} container
     * @return returns the dom element of the legend
     */
appends the legend to a specific container. It is already generated at this point.

Make sure to style it using the css of your website because otherwise the colored
span elements will not be visible.

@param {DOM} container
@return returns the dom element of the legend
appends the legend to a specific container . It is already generated at this point . Make sure to style it using the css of your website because otherwise the colored span elements will not be visible . @param { DOM } container @return returns the dom element of the legend
createLegend(container)
    {
        if(container === null)
        {
            return console.error("container for createLegend not found")
        }
        container.appendChild(this.legend.element)
        return(this.legend.element)
    }
createLegend ( container ) { if ( container === null ) { return console . error ( "container for createLegend not found" ) } container . appendChild ( this . legend . element ) return ( this . legend . element ) }
appends the legend to a specific container.
appends the legend to a specific container .