Skip to content

Chart - Getting Started: Add ASP.NET Core Snippets (#8984)#8988

Open
arman-boyakhchyan wants to merge 1 commit into
DevExpress:mainfrom
arman-boyakhchyan:chart-getting-started-asp-addition-26-2
Open

Chart - Getting Started: Add ASP.NET Core Snippets (#8984)#8988
arman-boyakhchyan wants to merge 1 commit into
DevExpress:mainfrom
arman-boyakhchyan:chart-getting-started-asp-addition-26-2

Conversation

@arman-boyakhchyan

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the “Getting Started with Chart” guide by adding ASP.NET Core Controls snippets alongside existing jQuery/Angular/Vue/React examples, so readers can follow the same tutorial steps using DevExtreme ASP.NET Core wrappers.

Changes:

  • Adds ASP.NET Core snippets for creating a Chart and binding it to server-provided data.
  • Adds ASP.NET Core configuration examples for series, multiple series, tooltips, gradient backgrounds, and constant lines.
  • Adjusts the “Specify Multiple Series” page structure to include additional framework headings/text (currently introduces duplication/formatting issues).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
concepts/05 UI Components/Chart/00 Getting Started with Chart/05 Create a Chart.md Adds an ASP.NET Core snippet and link to ASP.NET Core getting started docs.
concepts/05 UI Components/Chart/00 Getting Started with Chart/10 Display Chart Data.md Adds ASP.NET Core MVC data loading example (controller + model snippets).
concepts/05 UI Components/Chart/00 Getting Started with Chart/15 Configure Chart Series.md Adds ASP.NET Core series configuration example.
concepts/05 UI Components/Chart/00 Getting Started with Chart/20 Specify Multiple Series.md Adds ASP.NET Core multi-series snippet; introduces duplicated headings / separators at the top.
concepts/05 UI Components/Chart/00 Getting Started with Chart/25 Add and Customize Tooltips.md Adds ASP.NET Core tooltip customization; embeds a server number into JS in a locale-sensitive way.
concepts/05 UI Components/Chart/00 Getting Started with Chart/30 Specify a Custom Gradient Background.md Adds ASP.NET Core gradient background snippet with registerGradient + FillId(new JS(...)).
concepts/05 UI Components/Chart/00 Getting Started with Chart/35 Add a Constant Line.md Adds ASP.NET Core constant line configuration snippet.

Comment on lines +20 to +24
---

---

##### jQuery
Comment on lines +58 to +63
const isValueAboveAverage = data.value > @(ChartData.AverageSpend);
if (isValueAboveAverage) {
return { text: `${formatNumber(data.value, 'currency')}\n${formatNumber(data.value - @(ChartData.AverageSpend), 'currency')} above average spending.` };
}

return { text: `${formatNumber(data.value, 'currency')}\n${formatNumber(@(ChartData.AverageSpend) - data.value, 'currency')} below average spending.` };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants