如果想在MVC中使用图表显示的话,DotNet.HighCharts是不错的选择.DotNet.HighCharts是一个开源的JavaScript图表库,支持线型图表.柱状图标.饼状图标等几十种图标.本篇实现一个简单的区域图表. 在NuGet中输入关键字"DotNet.HighCharts". 安装完后,在Scripts和程序集下多了HighCharts相关文件. HomeController中. using System.Collections.Generic; using Sys…
一.绘制三点图 """ 三月份最高气温 a = [12,15,18,6,7,5,6,8,9,10,15,10,4,5,11,10,5,6,12,15,10,5,14,10,10,12,16,5,3,5,5,5,6] """ from matplotlib import pyplot as plt from matplotlib import font_manager y = [12,15,18,6,7,5,6,8,9,10,15,10,4,5,1…