# Plotting a Threshold Line in a DrillDown Series Chart

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Telerik UI for ASP.NET MVC Upload</td>
 </tr>
 <tr>
  <td>Progress Telerik UI for ASP.NET MVC version</td>
  <td>Created with the 2023.3.1010 version</td>
 </tr>
</table>

## Description

By design, the defined plot band in the DrillDown Chart will be visible on each view. How can I plot a threshold line only in the first series?

## Solution

1. Handle the `DrillDown` event of the Chart and remove the `plotBands` settings from the initial Chart options.
2. Handle the `DrilldownSeriesFactory` event that triggers when the current drill-down level has changed and set back the plot bands when the level is `0`.

Here is a sample implementation:

```Razor HtmlHelper
@(Html.Kendo().ChartBreadcrumb()
    .Name("cb")
    .Chart("chart")
)

@(Html.Kendo().Chart<ChartViewModel>()
    .Name("chart")
    ...
    .Events(ev => ev.DrilldownLevelChange("onDrilldownLevelChange").Drilldown("onDrillDown"))
)
```

```JS script
var initialPlotBands = [];

function onDrillDown(e) {
    initialPlotBands = e.sender.options.valueAxis.plotBands; // Store the initial plot bands options.
    e.sender.options.valueAxis.plotBands = null; // Remove the plotBands options.
    e.sender.redraw(); // Redraw the chart using the currently loaded data.
}

function onDrilldownLevelChange(e) {
    if (e.level === 0) { // Check if the current level is the first one.
        e.sender.options.valueAxis.plotBands = initialPlotBands; // Retrieve back the initial plot bands for the first series.
        e.sender.redraw();
    }
}
```

## More ASP.NET MVC DrillDown Chart Resources

* [ASP.NET MVC DrillDown Chart Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/charts/chart-types/drill-down)

* [ASP.NET MVC DrillDown Chart Demos](https://demos.telerik.com/aspnet-mvc/drilldown-charts)

* [ASP.NET MVC Chart Product Page](https://www.telerik.com/aspnet-mvc/charts)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the Chart for ASP.NET MVC](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/ui/chart)

* [Server-Side API Reference of the Chart for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/chart)

* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2023-backwards-compatibility)

* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
