如何将多个系列添加到Razor Helper图表? [英] How do I add multiple series to a Razor Helper Chart?

查看:68
本文介绍了如何将多个系列添加到Razor Helper图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.asp.net/webmatrix/tutorials/7-displaying-data-in-a-chart 讨论了如何创建简单的图表,它们正在起作用,但是我似乎无法弄清楚如何添加两个数据系列(来自两个单独的数据库查询)到同一图表.

解决方案

您是否尝试两次调用AddSeries()方法,每个数据库一次?

http://www.asp.net/webmatrix/tutorials/7-displaying-data-in-a-chart goes over how to create simple charts and they are working, but I can't seem to figure out how to add two data series (from two separate DB queries) to the same chart.

解决方案

Have you tried calling the AddSeries() method twice, once for each database?

这篇关于如何将多个系列添加到Razor Helper图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆