我正在尝试制作Canvas.js图表。我已使用JSON将值传递到客户端,但我无法将值传递给数据点。如何将值传递到数据点?我将发布下面代码的示例。任何帮助将不胜感激。
var img = new fabric.Image(your_img_element);
canvas.add(img);

import javax.servlet.MultipartConfigElement;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
public class WebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
@Override
protected Class<?>[] getRootConfigClasses() {
// TODO Auto-generated method stub
return new Class<?>[] { RootConfig.class };
}
@Override
protected Class<?>[] getServletConfigClasses() {
// TODO Auto-generated method stub
return new Class<?>[] { WebConfig2.class };
}
@Override
protected String[] getServletMappings() {
// TODO Auto-generated method stub
return new String[] { "/" };
}
}
&#13;
以上代码是否正确?
谢谢&amp;问候, Sajin A.