找回密码
 立即注册

QQ登录

只需一步,快速开始

swda

最新发帖
swda
注册会员   /  发表于:2019-7-15 16:20:32
11#
我这只有这个

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
swda
注册会员   /  发表于:2019-7-15 16:23:17
12#

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
swda
注册会员   /  发表于:2019-7-15 16:26:26
13#
我这没有那么多,只有flexchartExplorer
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-7-15 16:36:35
14#
应该就是这个demo,你可以打开运行看看,
回复 使用道具 举报
swda
注册会员   /  发表于:2019-7-16 13:27:00
15#
看了,没有。能否麻烦贴代码看看,主要是涉及纵向分轴,不知道该用什么属性或方法,谢谢。
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-7-16 15:12:41
16#
下面是关键代码,可以看到添加了三个PlotArea

  1. protected override void SetupChart()
  2.         {
  3.             flexChart1.ChartType = ChartType.Area;
  4.             this.flexChart1.Header.Content = "Distance, Velocity and Acceleration Graphs";
  5.             this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont;

  6.             flexChart1.PlotAreas.Add(new PlotArea { Name = "plot1", Row = 0 });
  7.             flexChart1.PlotAreas.Add(new PlotArea { Name = "spacing1", Row = 1 });
  8.             flexChart1.PlotAreas.Add(new PlotArea { Name = "plot2", Row = 2 });
  9.             flexChart1.PlotAreas.Add(new PlotArea { Name = "spacing2", Row = 3 });
  10.             flexChart1.PlotAreas.Add(new PlotArea { Name = "plot3", Row = 4 });

  11.             flexChart1.BindingX = "X";
  12.             flexChart1.Binding = "Y";
  13.             var acceleration = new Series
  14.             {
  15.                 Name = "Acceleration",
  16.                 DataSource = DataService.CreateDataPoints((x) => x, (y) => y, 20),
  17.                 AxisY = new Axis
  18.                 {
  19.                     Position = Position.Left,
  20.                     MajorGrid = true,
  21.                     PlotAreaName = "plot1"
  22.                 }
  23.             };
  24.             var velocity = new Series
  25.             {
  26.                 Name = "Velocity",
  27.                 DataSource = DataService.CreateDataPoints((x) => x, (y) => y * y, 20),
  28.                 AxisY = new Axis
  29.                 {
  30.                     Position = Position.Left,
  31.                     MajorGrid = true,
  32.                     PlotAreaName = "plot2"
  33.                 }
  34.             };
  35.             var distance = new Series
  36.             {
  37.                 Name = "Distance",
  38.                 DataSource = DataService.CreateDataPoints((x) => x, (y) => 0.5 * y * y * y, 20),
  39.                 AxisY = new Axis
  40.                 {
  41.                     Position = Position.Left,
  42.                     MajorGrid = true,
  43.                     PlotAreaName = "plot3"
  44.                 }
  45.             };
  46.             this.flexChart1.Legend.Position = Position.Right;
  47.             this.flexChart1.Series.Add(acceleration);
  48.             this.flexChart1.Series.Add(velocity);
  49.             this.flexChart1.Series.Add(distance);
  50.         }
复制代码
回复 使用道具 举报
swda
注册会员   /  发表于:2019-7-16 16:59:21
17#
我试试,非常感谢!
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-7-16 18:06:12
18#
不客气
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部