我使用asp.net 3.5(visual studio 2008)图表控件创建了一个示例柱形图,通过绑定数据库中的值来控制它。它正在工作。现在我想在同一图表的y轴上显示直线和柱形图。可能吗?我在下面的链接中复制了相同的代码。但它没有显示任何内容。
https://www.experts-exchange.com/viewCodeSnippet.jsp?codeSnippetId=20-40238814-1
答案 0 :(得分:0)
您需要将Chart对象实际放到屏幕上。简单的对接可以解决问题。
var express = require('express');
var http = require('http');
var app = express();
var methodOverride = require('method-override');
var bodyParser = require('body-parser');
var multer = require('multer');
var multerS3 = require('multer-s3');
var AWS = require('aws-sdk');
app.use(methodOverride());
app.use(bodyParser.urlencoded({ extended: true }));
//Create S3 client
var s3 = new AWS.S3();
//this code is copy directly from multer-s3 since I don't care about my file name shown on S3 for now
var upload = multer({
storage: multerS3({
s3: s3,
bucket: mybuckname,
metadata: function (req, file, cb) {
cb(null, {fieldName: file.fieldname});
},
key: function (req, file, cb) {
cb(null, Date.now().toString())
}
})
});
app.post('/create', upload.single('image'), function(req, res) {
var nameField = req.body.name,
topicField = req.body.topic;
console.log("File: ", req.file);
console.log("Name: ", nameField);
console.log("Topic: ", topicField);
res.sendStatus(200);
res.end();
});