Content-Length: 372141 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1656/commits/ffcef3c07f79c9dafe0558f41ad4e6abc4fd346e

F4 User friendly Charts Demo Data and Chart Fixes by iamfaran · Pull Request #1656 · lowcoder-org/lowcoder · GitHub
Skip to content

User friendly Charts Demo Data and Chart Fixes #1656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve Line Chart
  • Loading branch information
iamfaran committed Apr 24, 2025
commit ffcef3c07f79c9dafe0558f41ad4e6abc4fd346e
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ export const LineChartCompWithDefault = withDefault(LineChartComp, {
series: [
{
dataIndex: genRandomKey(),
seriesName: trans("chart.spending"),
columnName: "spending",
seriesName: "Sales",
columnName: "sales",
},
{
dataIndex: genRandomKey(),
seriesName: trans("chart.budget"),
columnName: "budget",
seriesName: "Growth",
columnName: "growth",
},
],
});
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,19 @@ export const XAxisDirectionOptions = [

export type XAxisDirectionType = ValueFromOption<typeof XAxisDirectionOptions>;

export const defaultChartData = [
{ date: "Jan", sales: 320, growth: 250 },
{ date: "Feb", sales: 450, growth: 300 },
{ date: "Mar", sales: 380, growth: 340 },
{ date: "Apr", sales: 520, growth: 400 },
{ date: "May", sales: 480, growth: 450 },
{ date: "Jun", sales: 600, growth: 500 }
];
export const noDataAxisConfig = {
animation: false,
xAxis: {
type: "category",
name: trans("chart.noData"),
name: "No Data Available",
nameLocation: "middle",
data: [],
axisLine: {
Expand Down Expand Up @@ -243,8 +251,8 @@ const EchartsOptionComp = withType(EchartsOptionMap, "funnel");
export type CharOptionCompType = keyof typeof ChartOptionMap;

export const chartUiModeChildren = {
title: withDefault(StringControl, trans("echarts.defaultTitle")),
data: jsonControl(toJSONObjectArray, i18nObjs.defaultDataSource),
title: withDefault(StringControl, trans("lineChart.defaultTitle")),
data: jsonControl(toJSONObjectArray, defaultChartData),
xAxisKey: valueComp<string>(""), // x-axis, key from data
xAxisDirection: dropdownControl(XAxisDirectionOptions, "horizontal"),
xAxisData: jsonControl(toArray, []),
Expand Down
2 changes: 2 additions & 0 deletions client/packages/lowcoder-comps/src/i18n/comps/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ export const en = {

},
lineChart: {
title: 'Title',
defaultTitle: 'Line Chart',
cellSize: "Cell Size",
range: "Range",
markLines: "Mark Lines",
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1656/commits/ffcef3c07f79c9dafe0558f41ad4e6abc4fd346e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy