Jump to content
We've recently updated our Privacy Statement, available here ×

cclement

Members
  • Posts

    5
  • Joined

  • Last visited

cclement's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. What would be the best practice in drawing a horizontal line on an existing chart? Would love to avoid having to create a multi-axis chart as I need to do this for a ton of graphs. Basically I just want to have a few thresholds defined that show if my data is anywhere near hitting that threshold. So for example CPU usage I want to have a line that exists at 90 (or 90%) which would indicate to the reviewer that perhaps cpu should be upgraded on this particular server if the values were near or above that threshold..
  2. still need assistance wiith this, or an example to follow at least, thanks!
  3. So I have a bunch of line graphs where I have to increase the thickness of the plotted lines. I tried using someone else's Java code here (haven't programmed in Java in ages), which changes the thickness of the line/pen on a time series graph. I have provided the code below, but am wondering how this could be modified to increase the thickness of all the plotted lines on a graph? Right now the customizer class I have created using this code seems to not do anything (I have properly configured the customizer class w/ all appropriate libraries, so this is not a compliation issue). package customizers;import java.awt.BasicStroke;import net.sf.jasperreports.engine.JRAbstractChartCustomizer;import net.sf.jasperreports.engine.JRChart;import net.sf.jasperreports.engine.JRChartCustomizer;import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;import org.jfree.chart.JFreeChart;public class LineThickness extends JRAbstractChartCustomizer{ public void customize(JFreeChart chart, JRChart jasperChart) { XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) chart.getXYPlot().getRenderer(); BasicStroke stroke = new BasicStroke(3f); renderer.setSeriesStroke(1, stroke); }}[/code]Thanks for the assist!!
  4. Hello all, so I have imported some data into a table from a mysql DB, which corrolates the number of alerts we received for each type of category (going from a minor severity to critical). My question is how would I design an expression to change the name of the rows, as right now it is displaying numerical values for the categories of severity (so 3 is Minor, 5 is Critical, etc.). I have attached a screenshot for reference.
×
×
  • Create New...