CPTSCATTERPLOT non mostra
-
12-11-2019 - |
Domanda
Sto usando CPTScatterPlot per mostrare i grafici in iPad. Il codice funziona correttamente ma i punti non sono tracciati sul grafico. Non viene mostrato nemmeno un singolo punto. Perché è così???
Il mio codice è:
CPTScatterPlot *dataSourceLinePlot = [[[CPTScatterPlot alloc] init] autorelease];
dataSourceLinePlot.identifier = @"Red Plot";
CPTMutableLineStyle *symbolLineStyle2 = [CPTLineStyle lineStyle];
symbolLineStyle2.lineColor = [CPTColor redColor];
symbolLineStyle2.lineWidth = 5.0;
//symbolLineStyle2.miterLimit = 1.0f;
dataSourceLinePlot.dataLineStyle = symbolLineStyle2;
dataSourceLinePlot.dataSource = self;
[graph addPlot:dataSourceLinePlot];
// Animate in the new plot, as an example
dataSourceLinePlot.opacity = 0.0f;
[graph addPlot:dataSourceLinePlot];
Ho controllato entrambi i metodi delegati. Entrambi restituiscono valori adeguati ma il grafico non viene tracciato quello che potrebbe essere la ragione. Per favore aiuto...
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow