Skip to content

Commit 0efb8bb

Browse files
authored
chore: replace example with live example url (#3154)
1 parent 1ad3af7 commit 0efb8bb

File tree

1 file changed

+3
-51
lines changed

1 file changed

+3
-51
lines changed

components/chart/overview.md

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,8 @@ The <a href="https://demos.telerik.com/blazor-ui/chart/overview" target="_blank"
2424

2525
>caption Basic chart
2626
27-
````RAZOR
28-
<TelerikChart>
29-
<ChartSeriesItems>
30-
<ChartSeries Type="ChartSeriesType.Line" Name="Product 1 (bound to simple data)" Data="@simpleData">
31-
</ChartSeries>
32-
<ChartSeries Type="ChartSeriesType.Line" Name="Product 2 (bound to model)" Data="@modelData" Field="@nameof(MyDataModel.SecondSeriesValue)">
33-
<ChartSeriesLabels Template="#=value# in #=dataItem.ExtraData# quarter" Visible="true"></ChartSeriesLabels>
34-
</ChartSeries>
35-
</ChartSeriesItems>
36-
37-
<ChartValueAxes>
38-
<ChartValueAxis Color="red"></ChartValueAxis>
39-
</ChartValueAxes>
40-
41-
<ChartCategoryAxes>
42-
<ChartCategoryAxis Categories="@xAxisItems"></ChartCategoryAxis>
43-
</ChartCategoryAxes>
44-
45-
<ChartTitle Text="Quarterly sales trend"></ChartTitle>
46-
47-
<ChartLegend Position="Telerik.Blazor.ChartLegendPosition.Bottom">
48-
</ChartLegend>
49-
</TelerikChart>
50-
51-
@code {
52-
public class MyDataModel
53-
{
54-
public int SecondSeriesValue { get; set; }
55-
public string ExtraData { get; set; }
56-
}
57-
58-
public List<MyDataModel> modelData = new List<MyDataModel>()
59-
{
60-
new MyDataModel() { SecondSeriesValue = 1, ExtraData = "first" },
61-
new MyDataModel() { SecondSeriesValue = 5, ExtraData = "second" },
62-
new MyDataModel() { SecondSeriesValue = 3, ExtraData = "third" },
63-
new MyDataModel() { SecondSeriesValue = 2, ExtraData = "fourth" },
64-
};
6527

66-
public List<object> simpleData = new List<object>() { 10, 2, 7, 5 };
67-
68-
public string[] xAxisItems = new string[] { "Q1", "Q2", "Q3", "Q4" };
69-
}
70-
````
28+
<demo metaUrl="client/chart/overview/" height="500"></demo>
7129

7230
## Chart Elements
7331

@@ -252,16 +210,10 @@ To execute Chart methods, obtain reference to the component instance via `@ref`.
252210
| `Refresh` | Use the method to programmatically re-render the Chart. |
253211
| `ResetDrilldownLevel` | Use the method to programmatically reset the drilldown level of the Chart. For more information refer to the [DrillDown article](slug:chart-drilldown#reset-drilldown-level). |
254212

255-
<div class="skip-repl"></div>
256-
257-
````RAZOR
258-
<TelerikButton OnClick="@RefreshChart">Refresh Chart</TelerikButton>
259-
260-
<TelerikChart @ref="ChartRef" />
213+
````RAZOR.skip-repl
214+
<TelerikChart @ref="@ChartRef" />
261215
262216
@code {
263-
public TelerikChart ChartRef;
264-
265217
private void RefreshChart()
266218
{
267219
ChartRef.Refresh();

0 commit comments

Comments
 (0)