Skip to content

Echarts extension #372

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 5 commits into from
Sep 14, 2023
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
fix: updated map chart options,examples url
  • Loading branch information
raheeliftikhar5 committed Sep 13, 2023
commit b137622c8bb5bcc627b18b644a0ba3f40b20b584
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ const echartsUrlLocale = language === "zh" ? "zh" : "en";
export const optionUrl = `https://echarts.apache.org/${echartsUrlLocale}/option.html`;
export const examplesUrl = `https://echarts.apache.org/examples/${echartsUrlLocale}/index.html`;
export const xAxisTypeUrl = `${optionUrl}#xAxis.type`;
export const googleMapsApiUrl = `https://maps.googleapis.com/maps/api/js`;
export const googleMapsApiUrl = `https://maps.googleapis.com/maps/api/js`;
export const mapOptionUrl = `https://github.com/plainheart/echarts-extension-gmap`;
export const mapExamplesUrl = `https://codepen.io/plainheart/pen/VweLGbR`;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
controlItem,
} from "lowcoder-sdk";
import { trans } from "i18n/comps";
import { examplesUrl, optionUrl } from "./chartConfigs/chartUrls";
import { examplesUrl, mapExamplesUrl, mapOptionUrl, optionUrl } from "./chartConfigs/chartUrls";

export function chartPropertyView(
children: ChartCompChildrenType,
Expand Down Expand Up @@ -175,12 +175,12 @@ export function chartPropertyView(
styleName: "higher",
tooltip: (
<div>
<a href={optionUrl} target="_blank" rel="noopener noreferrer">
{trans("chart.echartsOptionTooltip")}
<a href={mapOptionUrl} target="_blank" rel="noopener noreferrer">
{trans("chart.echartsMapOptionTooltip")}
</a>
<br />
<a href={examplesUrl} target="_blank" rel="noopener noreferrer">
{trans("chart.echartsOptionExamples")}
<a href={mapExamplesUrl} target="_blank" rel="noopener noreferrer">
{trans("chart.echartsMapOptionExamples")}
</a>
</div>
),
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 @@ -57,6 +57,8 @@ export const en = {
echartsOptionLabel: "Option",
echartsOptionTooltip: "ECharts option",
echartsOptionExamples: "ECharts examples",
echartsMapOptionTooltip: "ECharts Map Option",
echartsMapOptionExamples: "ECharts Map Examples",
selectDesc: "Triggered when the user selects part of the data in the chart",
unselectDesc: "Triggered when the user unselects part of the data in the chart",
selectedPointsDesc: "Selected points",
Expand Down
2 changes: 2 additions & 0 deletions client/packages/lowcoder-comps/src/i18n/comps/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export const zh = {
echartsOptionLabel: "选项",
echartsOptionTooltip: "ECharts选项",
echartsOptionExamples: "ECharts示例",
echartsMapOptionTooltip: "ECharts地图选项",
echartsMapOptionExamples: "ECharts地图示例",
selectDesc: "当用户选择图表中的部分数据时触发",
unselectDesc: "当用户取消选择图表中的部分数据时触发",
selectedPointsDesc: "已选中的数据点",
Expand Down