Hi Dunith, As we have a clear separation in between chart configuration and data provider, what about if we bring this data type logic to data provider level? There we could redefine the data types with current retrieval method and user preferred types. Then pass that schema to the chart drawing part. At the moment our schema consist of data types such as long, float, int double, string which are derived from java. Ultimately the purpose of the data provider is to provide data and schema to javascript libraries. What do you think about that?
Regards, On Wed, Jun 15, 2016 at 7:54 AM, Tharik Kanaka <tha...@wso2.com> wrote: > @Dunith; Yes we need to get that config when load the schema in draw method > > @Sajith; I think this not related for the chart configuration as this is a > data manipulation. Those mockups should be done in data set. Chart config > is not intelligent enough to figure out missing dates and fill these up. > > For an instance "if there is no data for the particular date" could be a > day, hour, minute or even a second. On the other hand at the moment x axis > is scaling from lowest date to highest date and timestamps within the range > will be plotted linear way. > > Regards, > > On Tue, Jun 14, 2016 at 7:09 PM, Sajith Perera <saji...@wso2.com> wrote: > >> >> Hi Tharik, >> >> There are situations like we have data set with epoch time attribute and >> we want to plot those data in bar chart under the following two condition : >> >> 1 > it should be plot withing the given time periods and scale. >> 2 > if there is no data for the particular date, it should be shown as >> empty. >> >> With the current tooling, user must have to create mock-up data [ I means >> user have to create empty records] for doing these task and if we have time >> scale for x axis can we have options like 1 and 2. >> >> Thanks, >> SajithD >> >> On Tue, Jun 14, 2016 at 2:01 PM, Dunith Dhanushka <dun...@wso2.com> >> wrote: >> >>> +1 for letting users to select data types for X,Y axes. >>> >>> We could have a UI partial along with X,Y axes to show available types >>> so that user can select explicitly. Upon selecting the types, they can be >>> persisted in chart-config object. So draw() can read it back when chart is >>> being rendered. >>> >>> Thanks, >>> Dunith >>> >>> On Tue, Jun 14, 2016 at 1:12 PM, Tharik Kanaka <tha...@wso2.com> wrote: >>> >>>> Hi All, >>>> >>>> At the moment in gadget wizard chart config UI we let users to select x >>>> axis and y axis, then dimension type will be retrieved by checking stream >>>> attribute type. As an example if the attribute type is string it gives >>>> ordinal and for long type it gives linear. >>>> >>>> Currently there are few limitations such as Timestamps are stored in >>>> long and these will be converted to linear scale not time scale. There >>>> could be situations where users need a long column attribute to show in >>>> ordinal scale. >>>> >>>> In order to enhance these requirements we decided to let users to >>>> select types as well. So there will be addition to fields for x axis type >>>> and y axis type with 4 options namely default, ordinal, linear and time. If >>>> user keeps default option it will retrieve as previous way else user could >>>> select desired type. Since these are advance configurations and a typical >>>> user may not use frequently, we could keep these controls separately in >>>> chart config UI. Please mention your thoughts on this. >>>> >>>> Regards, >>>> -- >>>> >>>> *Tharik Kanaka* >>>> >>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka >>>> >>>> Email: tha...@wso2.com | Web: www.wso2.com >>>> >>> >>> >>> >>> -- >>> Regards, >>> >>> Dunith Dhanushka, >>> Associate Technical Lead >>> WSO2 Inc, >>> >>> Mobile - +94 71 8615744 >>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>* >>> Twitter - @dunithd <http://twitter.com/dunithd> >>> >>> _______________________________________________ >>> Architecture mailing list >>> Architecture@wso2.org >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> Sajith Dimal >> Software Engineer >> Mobile : +94783101496 >> WSO2 Inc. | http://wso2.com >> lean.enterprise.middleware >> > > > > -- > > *Tharik Kanaka* > > WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka > > Email: tha...@wso2.com | Web: www.wso2.com > -- *Tharik Kanaka* WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture