Jump to content

Doubt about events (Ajax events, Client events (Ext events, Uni events) )


SergioFeitoza

Recommended Posts

I still do not understand well the logics of some events in my UNIGUI code. I used some of them suggested in some posts but I want to understand how they work. So, first, please suggest me a text / link to read the differences between ChartKendoUI.thumb.png.bb29eb8208867a5c22910df64a77d7de.pngfor UNIGUI.

I have an example that I need to solve now. I am using a UniFSKendoUI chart workell but  I need to make the line to become RED instead of BLUE if the  value of the  Xaxis variable is higher than 1200. Inside the code the name of the variable  is varX  ( if varX<1200 then BLUE else RED)  I thing that the code of the event is like below

The 2 questions are:

1)      How should I write the code below to indicate that (instead of point.value > 1) for point.value > varX=1200 the curve becomes RED ?

2)      Where, exactly should I insert the text of the code below ? This the main doubt. At ServerModule > CustomFiles? At ServerModule>CSSevents? ? Any other way ?

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    data: [1, 2],
    color: function(point) {
      if (point.value > 1) {
        return "red";
      }
      // use the default series theme color
    }
  }]
});
</script>
Link to comment
Share on other sites

16 hours ago, SergioFeitoza said:

I still do not understand well the logics of some events in my UNIGUI code. I used some of them suggested in some posts but I want to understand how they work. So, first, please suggest me a text / link to read the differences between ChartKendoUI.thumb.png.bb29eb8208867a5c22910df64a77d7de.pngfor UNIGUI.

I have an example that I need to solve now. I am using a UniFSKendoUI chart workell but  I need to make the line to become RED instead of BLUE if the  value of the  Xaxis variable is higher than 1200. Inside the code the name of the variable  is varX  ( if varX<1200 then BLUE else RED)  I thing that the code of the event is like below

The 2 questions are:

1)      How should I write the code below to indicate that (instead of point.value > 1) for point.value > varX=1200 the curve becomes RED ?

2)      Where, exactly should I insert the text of the code below ? This the main doubt. At ServerModule > CustomFiles? At ServerModule>CSSevents? ? Any other way ?


<div id="chart"></div>

<script>

$("#chart").kendoChart({

  series: [{

    data: [1, 2],

    color: function(point) {

      if (point.value > 1) {

        return "red";

      }

      // use the default series theme color

    }

  }]

});

</script>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...