Features

Range Selector

Range Selector

The RangeSelector allows end users to adjust the FinancialChart's visible range of data at runtime.

Features

Chart Types
Interaction
Analytics
BOX04/02/1504/06/1504/07/1504/08/1504/09/1504/10/1504/13/1504/14/1504/15/1504/16/1504/17/1504/20/1504/21/1504/22/1504/23/1504/24/1504/27/1504/28/1504/29/1504/30/1505/01/1505/04/1505/05/1505/06/1505/07/1505/08/1505/11/1505/12/1505/13/1505/14/1505/15/1505/18/1505/19/1505/20/1505/21/1505/22/1505/26/1505/27/1505/28/151718
01/23/1501/27/1501/29/1502/02/1502/04/1502/06/1502/10/1502/12/1502/17/1502/19/1502/23/1502/25/1502/27/1503/03/1503/05/1503/09/1503/11/1503/13/1503/17/1503/19/1503/23/1503/25/1503/27/1503/31/1504/02/1504/07/1504/09/1504/13/1504/15/1504/17/1504/21/1504/23/1504/27/1504/29/1505/01/1505/05/1505/07/1505/11/1505/13/1505/15/1505/19/1505/21/1505/26/1505/28/152024

Description

The RangeSelector allows end users to adjust the FinancialChart's visible range of data at runtime.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using FinancialChartExplorer.Models;
using Microsoft.AspNetCore.Mvc;
  
namespace FinancialChartExplorer.Controllers
{
    public partial class HomeController : Controller
    {
        public ActionResult RangeSelector()
        {
            var model = BoxData.GetDataFromJson();
            ViewBag.DemoSettingsModel = new ClientSettingsModel() { };
            ViewBag.ChartType = C1.Web.Mvc.Finance.ChartType.Candlestick;
            return View(model);
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@model List<FinanceData>
@{
    ViewBag.DemoSettings = false;
    var chartType = ViewBag.ChartType;
    ClientSettingsModel demoSettingsModel = ViewBag.DemoSettingsModel;
}
  
<script type="text/javascript">
    c1.documentReady(function () {
        c1.getExtender(wijmo.Control.getControl("#rs"), "RangeSelector").min = 47.5;
    });
</script>
  
<c1-financial-chart id="@demoSettingsModel.ControlId" symbol-size="6" binding-x="X" chart-type="@chartType">
    <c1-items-source source-collection="@Model"></c1-items-source>
    <c1-financial-chart-series binding="High,Low,Open,Close,Volume" name="BOX"></c1-financial-chart-series>
    <c1-flex-chart-tooltip content="financialTooltip"></c1-flex-chart-tooltip>
</c1-financial-chart>
  
@Html.Partial("_RangeSelector")
  
@section Description{
    <p>@Html.Raw(Home.RangeSelector_Text0)</p>
}
@section Summary{
    <p>@Html.Raw(Home.RangeSelector_Text1)</p>
}