有谁用过jstockchart开发过股票分时图,怎么去掉交易量的那一块
List data =datas;
// the 'timeline' indicates the segmented time range '09:30-11:30,
// 13:30-15:30'.
SegmentedTimeline timeline = new SegmentedTimeline(
SegmentedTimeline.MINUTE_SEGMENT_SIZE, 1320, 120);
timeline.setStartTime(SegmentedTimeline.firstMondayAfter1900() + 810
* SegmentedTimeline.MINUTE_SEGMENT_SIZE);
// Creates timeseries data set.
TimeseriesDataset dataset = new TimeseriesDataset(Minute.class, 1,
timeline, true);
dataset.addDataItems(data);
// Creates logic price axis.
CentralValueAxis logicPriceAxis = new CentralValueAxis(
last_settle, new Range(dataset.getMinPrice().intValue(), dataset.getMaxPrice().intValue()), 9,
new DecimalFormat("0"));
PriceArea priceArea = new PriceArea(logicPriceAxis);
// Creates logic volume axis.
LogicNumberAxis logicVolumeAxis = new LogicNumberAxis(new Range(dataset
.getMinVolume().intValue(), dataset.getMaxVolume().intValue()
), 5, new DecimalFormat("0"));
// LogicNumberAxis logicVolumeAxis = new LogicNumberAxis(new Range(0, 0), 2, new DecimalFormat("0"));
VolumeArea volumeArea = new VolumeArea(logicVolumeAxis);
TimeseriesArea timeseriesArea = new TimeseriesArea(priceArea,
volumeArea, createlogicDateAxis(DateUtils
.createDate(year,month,day)));
JFreeChart jfreechart = JStockChartFactory.createTimeseriesChart(
titleName, dataset, timeline, timeseriesArea,
false);
ChartUtilities.saveChartAsPNG(new File(imageFile), jfreechart, 300, 250);
// the 'timeline' indicates the segmented time range '09:30-11:30,
// 13:30-15:30'.
SegmentedTimeline timeline = new SegmentedTimeline(
SegmentedTimeline.MINUTE_SEGMENT_SIZE, 1320, 120);
timeline.setStartTime(SegmentedTimeline.firstMondayAfter1900() + 810
* SegmentedTimeline.MINUTE_SEGMENT_SIZE);
// Creates timeseries data set.
TimeseriesDataset dataset = new TimeseriesDataset(Minute.class, 1,
timeline, true);
dataset.addDataItems(data);
// Creates logic price axis.
CentralValueAxis logicPriceAxis = new CentralValueAxis(
last_settle, new Range(dataset.getMinPrice().intValue(), dataset.getMaxPrice().intValue()), 9,
new DecimalFormat("0"));
PriceArea priceArea = new PriceArea(logicPriceAxis);
// Creates logic volume axis.
LogicNumberAxis logicVolumeAxis = new LogicNumberAxis(new Range(dataset
.getMinVolume().intValue(), dataset.getMaxVolume().intValue()
), 5, new DecimalFormat("0"));
// LogicNumberAxis logicVolumeAxis = new LogicNumberAxis(new Range(0, 0), 2, new DecimalFormat("0"));
VolumeArea volumeArea = new VolumeArea(logicVolumeAxis);
TimeseriesArea timeseriesArea = new TimeseriesArea(priceArea,
volumeArea, createlogicDateAxis(DateUtils
.createDate(year,month,day)));
JFreeChart jfreechart = JStockChartFactory.createTimeseriesChart(
titleName, dataset, timeline, timeseriesArea,
false);
ChartUtilities.saveChartAsPNG(new File(imageFile), jfreechart, 300, 250);
...全文
相关推荐
jstockchart
使用JSP实现上交所和深交所的数据连接,实现炒股功能!
技术转移机构在帮助医院转化医疗科技成果时,有哪些标准的操作流程?.docx
技术转移机构在帮助医院转化医疗科技成果时,有哪些标准的操作流程?
国家对技术经纪人职业资格认定有哪些最新的考核标准和政策规定?.docx
科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。
科技成果转化平台哪家服务好?2026年6大机构客户满意度与复购率调研.docx
科技成果转化平台哪家服务好?2026年6大机构客户满意度与复购率调研
008_AI运维监控平台整体建设方案.pptx
008_AI运维监控平台整体建设方案.pptx


