<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jyothi Kandula on Medium]]></title>
        <description><![CDATA[Stories by Jyothi Kandula on Medium]]></description>
        <link>https://medium.com/@kandulajyothi1999?source=rss-6af1a426e617------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*W81zyMscMi2-RLtu</url>
            <title>Stories by Jyothi Kandula on Medium</title>
            <link>https://medium.com/@kandulajyothi1999?source=rss-6af1a426e617------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:41:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kandulajyothi1999/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mendix AnyChart : Retrieve more information from the chart event]]></title>
            <link>https://medium.com/@kandulajyothi1999/mendix-anychart-retrieve-more-information-from-the-chart-event-aad0aa7e4343?source=rss-6af1a426e617------2</link>
            <guid isPermaLink="false">https://medium.com/p/aad0aa7e4343</guid>
            <category><![CDATA[mendix]]></category>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[anychart]]></category>
            <category><![CDATA[data-points]]></category>
            <dc:creator><![CDATA[Jyothi Kandula]]></dc:creator>
            <pubDate>Thu, 16 Jan 2025 06:14:34 GMT</pubDate>
            <atom:updated>2025-01-16T06:14:34.734Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mendix AnyChart : Retrieve more information from the chart event</h3><p>AnyChart widget provides more flexibility than Basic Charts widget in Mendix. Particularly when we have to perform some task on click of a data point(x,y) in chart, AnyChart is the best option. By default, AnyChart widget provides few attributes associated with the data point we have clicked. In this blog, I would like to show how we can retrieve additional data along with the default attributes.</p><p><strong>Data set up</strong></p><p>Here, I am going to visualize some static data through scatter chart. As we have to pass the data in JSON format to AnyChart widget, I am passing a list of JSON objects as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*JLkWeNJGWjA2ttMaAEXefw.png" /><figcaption>Sample data</figcaption></figure><p><strong>Visualize the above data in UI</strong></p><ol><li>Add an entity in the domain model with a String attribute.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*kE-ipHOT_QRofSNvIrNA6Q.png" /></figure><p>2. Create a microflow. Add an activity for creating an object of entity created above and assign above sample data to the attribute and enclose it in single quotes and finally return the same object at the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*js2n76F3FtPgJx9RZRJhhg.png" /></figure><p>3. In a page, add data view. Select above created microflow as data source. Add AnyChart widget inside data view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Dkv3uea20-kudzGcGYBUg.png" /></figure><p>When we run the application, we can see the scatter chart with 4 data points. Let us add an on click event and see the default information it retrieves.</p><p><strong>Adding on click event</strong></p><ol><li>Under <strong>Events</strong> tab of AnyChart widget, we have to select <strong>Event</strong> <strong>entity</strong>, <strong>Event data</strong> <strong>attribute</strong> to store the event data and <strong>on click microflow</strong> that will be executed on click.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*hEQIsmev_M26COrkrIKYLw.png" /></figure><p>2. Here, I am selecting the ChartHelper entity and its attribute for Event entity and Event data attribute. I am creating a new microflow to be called on click. I just added Show message activity in that microflow to display the event data.</p><p>Now, On click of any data point in chart, after running application, shows the default information as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KW5ycvYwthq4qXJP2hovTA.png" /></figure><p><strong>Retrieve additional information</strong></p><p>Along with this data, I want the category (here it is either A or B) to which the data point belongs to.</p><ol><li>To retrieve that, we have to add an attribute “ids” similar to x and y attributes in JSON object, which should be unique value to each data point(x,y).</li><li>Here, I make sure that each id value contains the category name. To be unique, I am concatenating a number with the category name and incrementing the number for every data point. After implementing these changes data looks like:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ef2hWtYCvKqU8xXDgvKWjQ.png" /></figure><p>Now, if we run the application and click on any data point, we can see the additional attribute “id” associated with that data point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CM6_4njzacq_EDu_Roh2Hw.png" /></figure><p>We need to use Import from JSON activity passing the above data(of type String) in order to utilize any of its attributes.</p><p>Then we can apply split or substring operation on “id” attribute to get the actual category name and use it in further logic.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aad0aa7e4343" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>