vaadin-charts

How to create a “spectrum” chart using Vaadin 14+

若如初见. 提交于 2021-01-29 05:05:10
问题 Is there a way in Vaadin 14 (or higher) to create what's called a "spectra" chart? Essentially, it's 99% identical to a "scatter" chart, except that a line is drawn from the point all the way down to the x-axis (please see figures 1 and 2 below which more or looks like a correct spectra chart.). I created a "hack" to achieve these quasi spectrum charts in Vaadin using "line charts" and by adding two "fake" points of intensity 0 to the left and to the right of my immediate point (as shown in

Generating PDF with iText and batik

倖福魔咒の 提交于 2020-01-14 02:30:14
问题 I'm trying to export text and SVG graphs to a PDF. I found out that iText and batik can do this. So I tried doing that, but everytime I put in a graph, it would become extraordinary small. I thought it might be something with my code, so I figured I would try an examplecode from Vaadin. public class PdfExportDemo { private String fontDirectory = null; private final String baseFont = "Arial"; private PdfWriter writer; private Document document; private Font captionFont; private Font normalFont

Set or Get Color for ListSeries in VAADIN Charts

和自甴很熟 提交于 2019-12-25 04:22:08
问题 From the following VAADIN Charts Demo Link you can see a basic bar graph, https://demo.vaadin.com/charts/#BasicColumn The colors of the bars we can see here are coming from CSS file and not the JAVA Source Code File. Is there no way possible to set or get the colors for this bars? Please Note: 1) I cannot use DataSeries instead of ListSeries, since with Data Series achieving a view like the one shown in the above link is not possible(or I am not aware of). 2) I have already checked other

Set or Get Color for ListSeries in VAADIN Charts

南楼画角 提交于 2019-12-25 04:21:02
问题 From the following VAADIN Charts Demo Link you can see a basic bar graph, https://demo.vaadin.com/charts/#BasicColumn The colors of the bars we can see here are coming from CSS file and not the JAVA Source Code File. Is there no way possible to set or get the colors for this bars? Please Note: 1) I cannot use DataSeries instead of ListSeries, since with Data Series achieving a view like the one shown in the above link is not possible(or I am not aware of). 2) I have already checked other