Question
how to setRange touchGFX Graph Y Axis ?
I am using TouchGFX with STM32F767BI and 800x480 LCD.
I made a graph with reference to Graph during TouchGFX Demo.
My problem is that I can't set the Y axis.
How can I set it up?
The data I want to display is from 0 to 120000.
void Graph::setup(int newWidth, int newHeight, int bufSize, colortype lineColor, colortype backgroundColor)
{
setWidth(newWidth);
setHeight(newHeight);
graphLinePainter.setColor(lineColor);
graphAreaPainter.setColor(lineColor, getHeight());
graphDotsPainter.setColor(lineColor);
graphDotsBackgroundPainter.setColor(backgroundColor);
graphLine.setLinkedGraph(graphArea);
graphLine.setLinkedGraph(graphDots);
graphLine.setLinkedGraph(graphDotsBackground);
graphLine.setPosition(0, 0, getWidth(), getHeight());
graphLine.setPainter(graphLinePainter);
graphLine.setBuffer(graphBuffer, bufSize);
graphLine.setLineWidth(1);
graphLine.setRange(0, 290, 6500,0);
graphArea.setPainter(graphAreaPainter);
graphArea.setLineWidth(0);
graphDots.setPainter(graphDotsPainter);
graphDots.setLineWidth(7);
graphDots.setDotShape(0, 90);
graphDotsBackground.setPainter(graphDotsBackgroundPainter);
graphDotsBackground.setLineWidth(9);
graphDots.setDotShape(0, 30);
add(graphArea);
add(graphLine);
add(graphDotsBackground);
add(graphDots);
}This is almost the same Graph configuration as the example. I don't know how to change something.