title: Toggling Shield UI ASP.NET chart dataPointText property at runtime
body: <p>I am using related Shield UI ASP.NET Charts on a web page. What I need is to be able to provide the user the option to choose whether to show the dataPointText  or not. For that purpose I have put a checkbox below the second grid and am trying to use the following code:</p>
  
  <pre><code>        detailChartElement.shieldChart($.extend(initialOptions, {
              primaryHeader: {
                  text: headerText
              },
              if (document.getElementById("CheckBox1").checked == true){
                  seriesSettings: {
                      line: {
                          dataPointText: {
                              enabled: true,
                              borderColor: 'red',
                              borderWidth:3
                          }
                      }
                  },
              },
  </code></pre>
  
  <p>but when I put the code and none of the grids on the page shows. I checked quite carefully the code but don’t see any missed out commas or anything that should prevent it from working.</p>