Skip to content
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

提 Issue 之前必读【Must read before submit new issue】 #6

Open
supervons opened this issue Aug 18, 2021 · 0 comments
Open

提 Issue 之前必读【Must read before submit new issue】 #6

supervons opened this issue Aug 18, 2021 · 0 comments

Comments

@supervons
Copy link
Owner

supervons commented Aug 18, 2021

为了减少沟通,快速定位问题,希望提issue前,能提供以下信息:

  • 问题描述;
  • react-native-echarts-pro 版本;
  • react-native 版本;
  • react-native-webview 版本;
  • 平台;
  • 系统版本;
  • 最小可复现 Demo;

In order to reduce communication and quickly fix problems, I hope the following information can be provided before you submit new issue:

  • Problem description
  • react-native-echarts-pro version;
  • react-native version;
  • react-native-webview version;
  • Platform;
  • System version;
  • Minimum reproducible Demo;

Such as ,比如:

大家好,我的图表无法正常在android设备展示,但是在iOS正常;Hello, my chart doesn't work on Android devices, but it works on iOS;

  • react-native-echarts-pro【1.6.1】
  • react-native version【0.64.1】
  • react-native-webview 【11.6.6】
  • Platform【android】
  • System【10】
  • Demo:
import React from "react";
import { View } from "react-native";
import RNEChartsPro from "react-native-echarts-pro";
export default function ChartsComponent() {
  const pieOption = {
    tooltip: {
      trigger: "axis",
    },
    legend: {
      type: "scroll", // 设置图例翻页
      orient: "horizontal", // 图例横
      data: ["邮件营销", "联盟广告", "视频广告", "直接访问", "搜索引擎"],
    },
    grid: {
      left: "3%",
      right: "4%",
      bottom: "3%",
      containLabel: true,
    },
    xAxis: {
      type: "category",
      boundaryGap: false,
      data: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
    },
    yAxis: {
      type: "value",
    },
    series: [
      {
        name: "邮件营销",
        type: "line",
        stack: "总量",
        data: [120, 132, 101, 134, 90, 230, 210],
      }
    ],
  };

  return (
    <View style={{ height: 300, paddingTop: 25 }}>
      <RNEChartsPro
        onPress={res => alert(JSON.stringify(res))}
        legendSelectChanged={res => alert(res)}
        height={250}
        option={pieOption}
      />
    </View>
  );
}

希望能够帮助到大家!
Hope to be able to help everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant