Visualizzazione dei risultati da 1 a 9 su 9

Discussione: Grafico Chart Line

  1. #1

    Grafico Chart Line

    Salve a tutti aspomani,

    ho un problema serio che ne va della mia testa sul lavoro....

    sulla base di 7 variabili a numero intero sull'asse x e 7 a numero decimale sull'asse y devo fare un grafico a linea...

    qualcuno ha un idea concreta o puo aiutarmi per favore???
    la bistecca alla brace..

  2. #2
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Sul server puoi installare dei componenti aggiuntivi ? Altrimenti con asp puro è mooolto difficile.
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  3. #3
    si posso farlo ma non so quali... tu puoi consigliarmi qualcosa??
    tieni conto che l'asse y puo essere a volte 0,00xxxx a volte 0,000xxx e a volte 0,0000xx
    la bistecca alla brace..

  4. #4
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Guardati questo thread...
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  5. #5
    sarebbe fantastico.. il problema e che qui usano office 2000... i web component sono presenti e l'esempio dello script che ho copiato dal tuo thread mi da errore di ProgID non valido....

    ho provato con Set cs = Server.CreateObject("OWC9.ChartSpace")

    anziche 10 e non cambia...
    che faccio??
    si puo con office 2000???
    speriamo di si...
    sarebbe fantastico....
    la bistecca alla brace..

  6. #6
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Server.CreateObject("OWC.Chart") 'o ("OWC.Chart.9")

    Il problema è che l'oggetto chart e l'oggetto chartspace sono un po' diversi.. e non riesco a trovare come specificare il tipo di grafico per un oggetto chart...
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  7. #7
    Non capisco.. davvero.. cosa devo fare?.. deve essere un semplice grafico a linee... mi va benissimo lo script, ma continua a darmi ProgID non valido.... che significa?
    la bistecca alla brace..

  8. #8
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Sicuro di avere installato i componenti ? Prova ad aprire il registro del server e controlla che esista la classe owc.chart sotto HKEY_CLASSES_ROOT
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  9. #9
    Ok Luce:-)
    ci sono riuscito e a casa funziona benissimo ma qui adesso mi da errore :

    Tipo di errore:
    Microsoft Office Web Components 9.0 (0x800A03EC)
    The file c:\inetpub\wwwroot\laboratorio\prova.gif could not be opened for export.
    /laboratorio/simpleline.asp, line 192
    ____________________________________________


    ti riporto il codice sacro del chart a linea modificato affinche prenda solo le variabili senza autoscala... Mi dai una soluzione al problema? che puo essere secondo te?



    <%
    Dim Valori(6)
    'Dim Valori2(6)
    Dim Categorie(6)
    Set cs = Server.CreateObject("OWC.Chart")
    Set chConstants = cs.Constants
    Set chart = cs.charts.add
    chart.type = chConstants.chChartTypeLine
    set serie1 = chart.seriesCollection.add
    'set serie2 = chart.seriesCollection.add
    categorie(0) = fieldtempo1
    categorie(1) = fieldtempo2
    categorie(2) = fieldtempo3
    categorie(3) = fieldtempo4
    categorie(4) = fieldtempo5
    categorie(5) = fieldtempo6
    categorie(6) = fieldtempo7
    'valori2(0) = f1
    'valori2(1) = f2
    'valori2(2) = f3
    'valori2(3) = f4
    'valori2(4) = f5
    'valori2(5) = f6
    'valori2(6) = f7
    valori(0) = fieldresistenza1
    valori(1) = fieldresistenza2
    valori(2) = fieldresistenza3
    valori(3) = fieldresistenza4
    valori(4) = fieldresistenza5
    valori(5) = fieldresistenza6
    valori(6) = fieldresistenza7


    serie1.SetData chConstants.chDimCategories, chConstants.chDataLiteral, categorie
    serie1.SetData chConstants.chDimValues, chConstants.chDataLiteral, valori
    'serie2.SetData chConstants.chDimValues, chConstants.chDataLiteral, valori2

    cs.ExportPicture server.MapPath("prova.gif"), "GIF", 590, 320
    Set cs = Nothing

    %><style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    }
    -->
    </style>

    <meta http-equiv="refresh" content="2">


    [img]prova.gif[/img]
    la bistecca alla brace..

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.