anonymous Log in
Search
Recents:
v3.0
csharp-l
highchart
04/09/20 05:42

Gabriel Medina

Replies: 0

Buenísimo RODO
Bienvenido
Muchas gracias* MUY INTERESANTE Y UTIL.*
--
Saludos,
gab
@gxsoft
On Thu, Sep 3, 2020 at 7:53 PM Rodo <ramunozp@gmail.com> wrote:
> Voy a publicar el UC para el que lo quiera usar, es muy simple.
>
> se usa asi:
> HC_UC.containerID = ‘HC_UC’ // id del container html
> HC_UC.Config = &JSON // config segun documentación de highchart, basado en
> sdt
> HC_UC.refresh('HC_UC', &JSON, HC_typeChart.chart) // rederizar y
> actualizar el dibujo, con un control timer se puede dejar cada cierto
> tiempo que el gráfico se actualice.
>
>
> Atte
> Rodolfo Muñoz
> ---------- Mensaje reenviado ----------
> *De:* Rodo <ramunozp@gmail.com>
> *Fecha:* 3 de sep. de 2020 18:47 -0400
> *Para:* Gabriel Medina <gxsoft@gmail.com>
> *Asunto:* Re: [GeneXus Beta] highchart
>
> tengo ejemplos de un gráfico tipo CHART Y STOCK con un usercontrol. logre
> sortear los baches.
>
> tipo chart
>
>
> tipo stock
>
>
>
>
>
> Atte
> Rodolfo Muñoz
> El 3 de sep. de 2020 8:13 -0400, Gabriel Medina <gxsoft@gmail.com>,
> escribió:
>
> Aha, y como vas con el último SDT_HIGHCHARTS... [x]
>
> Con las collections. has tenido problemas?
> ?
>
>
>
> --
> Saludos,
> gab
> @gxsoft
>
>
>
> On Wed, Sep 2, 2020 at 6:50 PM Rodo <ramunozp@gmail.com> wrote:
>
>> No sé que gráfico quieres usar, por que si es el tipo Chart el sdt es de
>> una form, si es de tipo Stock, el sdt cambia. Por tanto te pongo mi ejemplo:
>>
>> Tipo: CHART
>> <Attachment.png>
>>
>> <Attachment-1.png>
>>
>> Atte
>> Rodolfo Muñoz
>> El 2 de sep. de 2020 15:35 -0400, Gabriel Medina <gxsoft@gmail.com>,
>> escribió:
>>
>> Perdón Rodo por lo "poco explicativo"
>>
>> Quería saber si tu SDT era Collection. o no, preguntaba porque NO se ve
>> la última columna del CheckBox donde se tilda Collection.
>> Luego me di cuenta que NO, porque se ve distinto
>>
>> Ejemplos: El SDT de Arriba is *collection*, el de abajo *NO*
>>
>> <image.png>
>>
>> Estaba teniendo algunas dudas respecto a qué convenía, y me daban trabajo
>> ciertos Collection al pasarlos como parámetros...
>> Por eso la pregunta.
>>
>>
>> --
>> Saludos,
>> gab
>> @gxsoft
>>
>>
>>
>> On Tue, Sep 1, 2020 at 9:42 AM Rodo <ramunozp@gmail.com> wrote:
>>
>>> Disculpa estoy confundido, no entendí.
>>>
>>> Atte
>>> Rodolfo Muñoz
>>> El 1 de sep. de 2020 7:44 -0400, Gabriel Medina <gxsoft@gmail.com>,
>>> escribió:
>>>
>>> Hola Rodo,
>>>
>>> No alcanzo a ver si el SDT usado es una *Collection.*
>>> Hermoso Thread...
>>>
>>> Quisiera saber si has tenido problemas con el
>>> *&SDT_DataChart.Add(&Sdt_DataChartItem)* no creo que necesites una
>>> collection en tu caso, pero por las dudas pregunto.
>>>
>>> Muchas gracias,
>>> gab
>>> --
>>> Saludos,
>>> gab
>>> @gxsoft
>>>
>>>
>>>
>>> On Wed, Aug 26, 2020 at 11:50 AM Rodo <ramunozp@gmail.com> wrote:
>>>
>>>> *Hola*,
>>>>
>>>> para contextualizar, no se bien como o donde colocar el javascript que
>>>> necesito, es decir :
>>>>
>>>> $( document ).ready(function() {
>>>> console.log( "ready!" );
>>>> });
>>>> 1
>>>> 2
>>>> 3
>>>> 4
>>>>
>>>> // A $( document ).ready() block.
>>>>
>>>>
>>>> de hecho, pensé que esta función hacia lo mismo, When=“AfterShow”, pero
>>>> al ver el javascript generado, .me di cuenta que no.
>>>>
>>>> la ejecución no da errores, ademas, imprimo lo que le entrego desde
>>>> genexus.
>>>>
>>>> <Attachment.png>
>>>>
>>>> de:
>>>> <Attachment-1.png>
>>>> y en el js generado no queda como espero y no funciona.
>>>> <Attachment-2.png>
>>>> resultado:
>>>> <Attachment-3.png>
>>>> cuando tomo a mano la linea que dibuja el grafico, funciona, un simple
>>>> ejemplo.
>>>>
>>>> var chart = Highcharts.chart('container',
>>>> {"chart":{"type":"areaspline"},"title":{"text":"Average fruit consumption
>>>> during one
>>>> week"},"legend":{"layout":"vertical","align":"left","verticalAlign":"top","x":150,"y":100,"floating":true,"borderWidth":1,"backgroundColor":"Highcharts.defaultOptions.legend.backgroundColor
>>>> ||
>>>> '#FFFFFF'"},"xAxis":{"categories":"[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]","plotBands":[{"from":"4.5","to":"6.5","color":"rgba(68,
>>>> 170, 213, .2)"}]},"yAxis":{"title":{"text":"Fruit
>>>> Units"}},"tooltip":{"shared":true,"valueSuffix":"
>>>> units"},"credits":{"enabled":false},"plotOptions":{"areaspline":{"fillOpacity":"0.5"}},"series":[{"name":"Jhon","data":[3,4,3,5,4,10,12]},{"name":"Jane","data":[1,3,4,3,3,5,4]}]});
>>>>
>>>> <Attachment-4.png>
>>>>
>>>> sdt usado:
>>>> <Attachment-5.png>
>>>>
>>>> no e que pueda estar mal, pero el js generado para el UC no es lo que
>>>> espero. Es mas, hice un UC a la manera antigua y funciona, el problema es
>>>> ajustar el html, ya que no puedo controlar algunos atributos de tamaño del
>>>> <div id=container> que no los toma, y el js es super simple:
>>>>
>>>> <Attachment-6.png>
>>>>
>>>> probe con el ready y el DOMContentLoad y el resultado es el mismo, con
>>>> el UC de la 16.
>>>>
>>>>
>>>> ojalá me puedan orientar.
>>>>
>>>> Atte
>>>> Rodolfo Muñoz
>>>> El 26 de ago. de 2020 8:08 -0400, Nicolas Cardelino <
>>>> ncardelino@genexus.com>, escribió:
>>>>
>>>> Rodolfo, te aparece algún mensaje de error en la consola cuando no
>>>> funciona?
>>>> Si no aparece ningún mensaje, quizás podrías poner todo el contenido
>>>> del método que estas definiendo dentro de un bloque try/catch y mandar a la
>>>> consola la excepción.
>>>>
>>>> Saludos,
>>>>
>>>> Nicolás
>>>>
>>>>
>>>> On Tue, Aug 25, 2020 at 2:01 PM Rodo <ramunozp@gmail.com> wrote:
>>>>
>>>>> *Nota*: pregunto por que el objeto QueryViewer es mu limitado y no me
>>>>> permite el control completo del gráfico y tampoco tengo todas las opciones
>>>>> disponibles, sin mencionar que la documentación es mala.
>>>>>
>>>>> Cómo puedo ejecutar (lo siguiente) con el objeto usercontrol?
>>>>>
>>>>> var chart = Highcharts.chart('container', this.config);
>>>>>
>>>>> no funciona, sin embargo, lo ejecuto en la consola, funciona.
>>>>>
>>>>> usando esto, no me funciona.
>>>>>
>>>>> <Script Name="highCharts_render" When="AfterShow">
>>>>> var config = this.config
>>>>> console.log(config);
>>>>> var chart = Highcharts.chart('container', config);
>>>>> </Script>
>>>>>
>>>>> Gracias
>>>>>
>>>>> Atte
>>>>> Rodolfo Muñoz
>>>>>
>>>>> --
>>>>> Manage subscriptions at http://www.genexus.com/betatesters
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "GeneXus Beta Channel" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to beta+unsubscribe@genexus.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/a/genexus.com/d/msgid/beta/a76f206f-0d7e-4db4-8b63-fe8a8e733fa3%40Spark
>>>>> <https://groups.google.com/a/genexus.com/d/msgid/beta/a76f206f-0d7e-4db4-8b63-fe8a8e733fa3%40Spark?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> Manage subscriptions at http://www.genexus.com/betatesters
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "GeneXus Beta Channel" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to beta+unsubscribe@genexus.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/a/genexus.com/d/msgid/beta/CA%2BDhYDWa8o_b5MMt7VG%2BvmSMZ1shrVv7CoUt2ojntF_hkvgiHg%40mail.gmail.com
>>>> <https://groups.google.com/a/genexus.com/d/msgid/beta/CA%2BDhYDWa8o_b5MMt7VG%2BvmSMZ1shrVv7CoUt2ojntF_hkvgiHg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> Manage subscriptions at http://www.genexus.com/betatesters
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "GeneXus Beta Channel" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to beta+unsubscribe@genexus.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/a/genexus.com/d/msgid/beta/a001759f-ea92-476a-91d9-abac31eacd51%40Spark
>>>> <https://groups.google.com/a/genexus.com/d/msgid/beta/a001759f-ea92-476a-91d9-abac31eacd51%40Spark?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> Manage subscriptions at http://www.genexus.com/betatesters
> ---
> You received this message because you are subscribed to the Google Groups
> "GeneXus Beta Channel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beta+unsubscribe@genexus.com.
> To view this discussion on the web visit
> https://groups.google.com/a/genexus.com/d/msgid/beta/f669bbb8-5a42-4bb1-95dc-7487ac19fabf%40Spark
> <https://groups.google.com/a/genexus.com/d/msgid/beta/f669bbb8-5a42-4bb1-95dc-7487ac19fabf%40Spark?utm_medium=email&utm_source=footer>
> .
>


Back to csharp-l