How to hide the second colorpicker when there is single dataset in graph canvas?
<p>I am using <a href="https://bgrins.github.io/spectrum/" rel="nofollow">https://bgrins.github.io/spectrum/</a> colorpicker in one of my application where if user drags csv data to graph tab, then the data would be visualized as graph. The color of the graph can be changed by the user by choosing color in colorpicker. My problem is even for single dataset in the graph, there appears two color picker. Though i defined two colorpicker in div as </p>

<pre><code>&lt;div class="col-md-10"&gt;
                &lt;canvas id="canvas"&gt;                    
                &lt;/canvas&gt;
                &lt;div id="js-legend" class="chart-legend"&gt;&lt;/div&gt;
                &lt;input  class="basic"/&gt;
                &lt;em id='basic-log'&gt;&lt;/em&gt;
                &lt;input  class="basic_compare"/&gt;
                &lt;em id='basic-log_compare'&gt;&lt;/em&gt;
                &lt;div id="graph_slider"&gt;&lt;/div&gt;
                &lt;div id="graph_legend"&gt;&lt;/div&gt;


            &lt;/div&gt;
</code></pre>

<p>I want to restrict if there is single data then there should be one colorpicker.The image attached below will make it clear.
<a href="http://i.stack.imgur.com/CURpZ.png" rel="nofollow">Showing two colorpicker for single dataset</a></p>

<p>Can i do something in below code not to show the second colorpicker icon if there is single dataset in canvas?</p>

<pre><code>$("#graph").droppable({
                activeClass: "ui-state-default",
                hoverClass: "ui-state-hover",
                accept: ":not(.ui-sortable-helper)",
                drop: function (event, ui) {
                    HoldOn.open();
                    //alert(ui.draggable.text());
                    // $("#info").html("dropped!");
                    canvas = document.getElementById('canvas');
                    console.log(canvas);
                    if (canvas.toDataURL() === document.getElementById('blank').toDataURL())
                    {
                        data1 = ui.draggable.text();
</code></pre>