Skip to content

Commit

Permalink
Merge pull request #4 from kmuthukumar23/EJ2-24507-github
Browse files Browse the repository at this point in the history
Source Updated with V17.1.0.38-beta
  • Loading branch information
ajithr authored Mar 29, 2019
2 parents 8bafbb1 + f8ed035 commit 0461d8b
Show file tree
Hide file tree
Showing 48 changed files with 18,325 additions and 4,731 deletions.
8 changes: 0 additions & 8 deletions ej2-blazor-samples/Pages/Buttons/Button/RadioButton.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@
margin: 20px 0;
}
.radio-control h4 {
color: rgba(0, 0, 0, 0.64);
}
.highcontrast .radio-control h4 {
color: rgba(255, 255, 255, 0.64);
}
.e-bigger .radio-control h4 {
font-size: 20px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@*End:Hidden*@

<div class="control-section">
<EjsChart id="charts" title="Inflation - Consumer Price" ref="chart" primaryXAxis="@xAxis" primaryYAxis="@yAxis">
<EjsChart id="charts" title="Inflation - Consumer Price" primaryXAxis="@xAxis" primaryYAxis="@yAxis" chartArea="@chartArea">
<ChartTooltipsettings enable="true"></ChartTooltipsettings>
<ChartSeriesCollection>
<ChartSeries dataSource="@dataSource" name="Germany" xName="xValue" width="2"
Expand All @@ -48,10 +48,6 @@

@functions{

EjsChart chart;



public class LineChartData
{
public DateTime xValue;
Expand All @@ -68,6 +64,9 @@
majorGridLines = new { width = 0.0000001 }
};

public Object chartArea = new {
border = new { width = 0.00000001 }
};


public Object yAxis = new
Expand Down
9 changes: 6 additions & 3 deletions ej2-blazor-samples/Pages/Charts/Chart/Trackball.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@*End:Hidden*@

<div class="control-section">
<EjsChart id="trackball" title="Inflation - Consumer Price" primaryXAxis="@xAxis" primaryYAxis="@yAxis" dataSource="@chartData">
<EjsChart id="trackball" title="Inflation - Consumer Price" primaryXAxis="@xAxis" primaryYAxis="@yAxis" dataSource="@chartData" chartArea="@chartArea">
<ChartTooltipsettings enable="true" shared="true"></ChartTooltipsettings>
<ChartChartarea chartareaborder=""></ChartChartarea>
<ChartCrosshairsettings enable="true" lineType="@linetype"></ChartCrosshairsettings>
Expand Down Expand Up @@ -86,15 +86,18 @@
majorGridLines = new { width = 0.0000001 }
};


public Object chartArea = new {
border = new { width = 0.00000001 }
};

public Object yAxis = new
{
labelFormat = "{value}M",
rangePadding = "None",
title = "Revenue",
majorTickLines = new { width = 0.000001 },
minorTickLines = new { width = 0.000001 }
minorTickLines = new { width = 0.000001 },
lineStyle = new { width = 0.000001 }
};

public Object tooltip = new
Expand Down
61 changes: 61 additions & 0 deletions ej2-blazor-samples/Pages/Charts/RangeNavigator/LightWeight.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@page "/Charts/LightWeight"
@using Syncfusion.EJ2.RazorComponents.Charts
@using System;
@using System.Collections.Generic;
@using System.Linq;
@using System.Threading.Tasks;
@using Newtonsoft.Json;
@*Hidden:Lines*@
@using ej2_blazor_samples
@{
SampleBrowser.CurrentSampleName = SampleBrowser.Config.RangeNavigator[1].Name;
SampleBrowser.CurrentControlName = "RangeNavigator";
SampleBrowser.CurrentControlCategory = "RangeNavigator";
SampleBrowser.CurrentControl = SampleBrowser.Config.RangeNavigator;
SampleBrowser.ActionDescription = new string[] {
@"<p>
This sample visualizes the bitcoin price range with area series in the light weight range navigator. Selected range values are enhanced with tooltip.
</p>"
};
SampleBrowser.Description = new string[] {
@"<p>
In this example, you can see how to render and configure the Light Weight Range Navigator.
</p>"
};
}
@*End:Hidden*@

<div class="control-section">

<h4 id="default" style="font-family: Segoe UI;font-weight: 500; font-style:normal; font-size:15px;" align="center">LightWeight Range Navigator</h4>
<EjsRangeNavigator id="range" valueType=Syncfusion.EJ2.RazorComponents.Charts.RangeValueType.DateTime tooltip="@tooltip" dataSource="@data" xName="xValue" yName="yValue">
</EjsRangeNavigator>

</div>

@functions{
public Object tooltip = new
{
enable = true,
displayMode = "Always"
};

public List<object> data { get; set; } = new List<object> {

new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28 },
new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44 },
new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48 },
new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50 },
new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66 },
new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78 },
new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84 },
};

public class LineChartData
{
public DateTime xValue;
public double yValue;
public double yValue1;
};

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,25 @@
@{
SampleBrowser.CurrentSampleName = "RangeNavigator";
SampleBrowser.CurrentControlName = "RangeNavigator";
SampleBrowser.CurrentControlCategory = "Chart";
SampleBrowser.CurrentControlCategory = "RangeNavigator";
SampleBrowser.CurrentControl = SampleBrowser.Config.RangeNavigator;
SampleBrowser.ActionDescription = new string[] {
@"<p>
This sample visualizes the bitcoin price range with area series in the range navigator. Selected range values are enhanced with tooltip.
</p>"
};
SampleBrowser.Description = new string[] {
@"<p>
In this example, you can see how to render and configure the Range Navigator.
<code>AreaSeries</code> is used to represent selected data value.
</p>"
};
}
@*End:Hidden*@

<div class="control-section">

<h4 id="default" style="font-family: Segoe UI;font-weight: 500; font-style:normal; font-size:15px;">Bitcoin (USD) Price Range</h4>
<h4 id="default" style="font-family: Segoe UI;font-weight: 500; font-style:normal; font-size:15px;" align="center">Bitcoin (USD) Price Range</h4>
<EjsRangeNavigator id="range" valueType=Syncfusion.EJ2.RazorComponents.Charts.RangeValueType.DateTime tooltip="@tooltip" dataSource="@data" series="@series">
</EjsRangeNavigator>

Expand Down
22 changes: 20 additions & 2 deletions ej2-blazor-samples/Pages/Charts/SampleList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ internal partial class SampleConfig
Url = "Charts/RangeNavigator",
FileName = "RangeNavigator.cshtml",
Type = SampleType.New
},
new Sample
{
Name = "Light weight",
Category = "Range Navigator",
Directory = "Charts/RangeNavigator",
Url = "Charts/LightWeight",
FileName = "LightWeight.cshtml",
Type = SampleType.New
}
};

Expand Down Expand Up @@ -112,12 +121,21 @@ internal partial class SampleConfig
public List<Sample> StockChart { get; set; } = new List<Sample>{
new Sample
{
Name = "Stock Chart",
Category = "StockChart",
Name = "StockChart",
Category = "Stock Chart",
Directory = "Charts/StockChart",
Url = "Charts/StockChart",
FileName = "StockChart.cshtml",
Type = SampleType.New
},
new Sample
{
Name = "Hide Range Selector",
Category = "Stock Chart",
Directory = "Charts/StockChart",
Url = "Charts/HideSelector",
FileName = "HideSelector.cshtml",
Type = SampleType.New
}
};
}
Expand Down
97 changes: 97 additions & 0 deletions ej2-blazor-samples/Pages/Charts/StockChart/HideSelector.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
@page "/Charts/HideSelector"
@using Syncfusion.EJ2.RazorComponents.Charts
@using System;
@using System.Collections.Generic;
@using System.Linq;
@using System.Threading.Tasks;
@using Newtonsoft.Json;
@*Hidden:Lines*@
@using ej2_blazor_samples
@{
SampleBrowser.CurrentSampleName = SampleBrowser.Config.StockChart[1].Name;
SampleBrowser.CurrentControlName = "StockChart";
SampleBrowser.CurrentControlCategory = "StockChart";
SampleBrowser.CurrentControl = SampleBrowser.Config.StockChart;
SampleBrowser.ActionDescription = new string[] {
@"<p>
This sample visualizes stock chart without range Slider.
</p>"
};
SampleBrowser.Description = new string[] {
@"<p>
In this example, you can see how to render and configure the Stock chart.
<code>LineSeries</code> is used to represent selected data value.
</p>
<br>"
};
}
@*End:Hidden*@

<div class="control-section">
<EjsStockChart id="stockChart" title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis" primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data" enableSelector="false">
</EjsStockChart>
</div>

@functions{

public Object xAxis = new
{
valueType = "DateTime",
labelFormat = "y",
intervalType = "Years",
edgelabelPalcement = "Shift",
majorGridLines = new { width = 0.0000001 }
};



public Object yAxis = new
{
labelFormat = "{value}M",
rangePadding = "None",
title = "Revenue",
majorTickLines = new { width = 0.000001 },
minorTickLines = new { width = 0.000001 }
};

public Object tooltip = new
{
enable = false,
shared = true
};



public Object crosshair = new
{
enable = false,
lineType = "Vertical"
};

public List<object> data { get; set; } = new List<object> {

new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28 },
new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44 },
new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48 },
new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50 },
new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66 },
new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78 },
new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84 },
};

public class LineChartData
{
public DateTime xValue;
public double yValue;
public double yValue1;
};




public List<object> seriesData { get; set; } = new List<object>
{
new { xName = "xValue", type = "Line", yName = "yValue" }
};

}
12 changes: 6 additions & 6 deletions ej2-blazor-samples/Pages/Charts/StockChart/StockChart.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@*Hidden:Lines*@
@using ej2_blazor_samples
@{
SampleBrowser.CurrentSampleName = "Stock Chart";
SampleBrowser.CurrentSampleName = SampleBrowser.Config.StockChart[0].Name;
SampleBrowser.CurrentControlName = "StockChart";
SampleBrowser.CurrentControlCategory = "StockChart";
SampleBrowser.CurrentControl = SampleBrowser.Config.StockChart;
Expand All @@ -20,15 +20,15 @@
SampleBrowser.Description = new string[] {
@"<p>
In this example, you can see how to render and configure the Stock chart.
<code>CandleSeries</code> is used to represent selected data value.
<code>LineSeries</code> is used to represent selected data value.
</p>
<br>"
};
}
@*End:Hidden*@

<div class="control-section">
<EjsStockChart id="stockChart" Title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis" primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data">
<EjsStockChart id="stockChart" title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis" primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data">
</EjsStockChart>
</div>

Expand Down Expand Up @@ -59,15 +59,15 @@

public Object tooltip = new
{
enable = true,
enable = false,
shared = true
};



public Object crosshair = new
{
enable = true,
enable = false,
lineType = "Vertical"
};

Expand Down Expand Up @@ -97,4 +97,4 @@
new { xName = "xValue", type = "Line", yName = "yValue" }
};

};
}
Loading

0 comments on commit 0461d8b

Please sign in to comment.