Get asp label value and put in javascript function
<p>I have two label and I want to get the value and store in javascript function. 
I want the value to put in pie chart label. Im only getting one and I don't know how to do it in another label. Please Help me.</p>

<p>Here is what I have so far.</p>

<p>**Javascript **</p>

<pre><code>    var pie = 0;
    function changepie(val) {
        pie = val;
    }
    var pie2 = 0;
    function changepie2(val) {
          pie2 = val;
      }
</code></pre>

<p><strong>Front end</strong></p>

<pre><code> &lt;asp:Label ID="Label1" runat="server" Text="Label" Visible="false"?&lt;/asp:Label&gt;
 &lt;asp:Label ID="Label2" runat="server" Text="Label" Visible="true"&gt;&lt;/asp:Label&gt;
</code></pre>

<p><strong>Another javascript for pie chart loading</strong></p>

<pre><code> window.onload = function () {
            var chart = new CanvasJS.Chart("chartContainer",
            {
                animationEnabled: true,
                animationDuration: 1300,
                backgroundColor: "transparent",
                legend: {
                    verticalAlign: "bottom",
                    horizontalAlign: "center"
                },
                data: [
                {

                    indexLabelFontSize: 10,
                    indexLabelFontWeight: "bold",
                    indexLabelFontFamily: "Helvetica",
                    indexLabelPlacement: "outside",
                    indexLabelLine: "none",
                    radius: "100%",
                    type: "pie",

                    toolTipContent: "{y} - &lt;strong&gt;#percent%&lt;/strong&gt;",
                    dataPoints: [
                        { y: pie, legendText: "", 
                                    label: pie + "%", 
                                    indexLabelLineColor: "#1dc7ea", 
                                    indexLabelFontColor: "#1dc7ea", 
                                    exploded: true, 
                                    indexLabelPadding: "5px"
                                    },
                        { y: pie2, legendText: "",
                                    label: pie2, 
                                    indexLabelLineColor: "#FF4A55", 
                                    indexLabelFontColor: "#FF4A55" 
                                    }

                    ]
                }
                ]
            });
            chart.render();
        }
</code></pre>

<p><strong>and here is my backend</strong></p>

<pre><code>Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

    Label1.Text = Session("percent").ToString.Replace("&lt;span class&gt;", "").Replace("&lt;/span&gt;", "")
    Label2.Text = Session("aaa").ToString
    ClientScript.RegisterClientScriptBlock(Me.[GetType](), "Script", "changepie(" + Label1.Text + ");", True)
    ClientScript.RegisterClientScriptBlock(Me.[GetType](), "Script", "changepie2(" + Label2.Text + ");", True)
End Sub
</code></pre>