Time chart list doesn't display under chart menu of user-defined query view

LabKey Support Forum (Inactive)
Time chart list doesn't display under chart menu of user-defined query view aaron8tang  2014-06-04 23:07
Status: Closed
 
My action steps are:

1.create a new query from schema browser
2.add a query web part and choose to display the content of the query defined at step 1
3.create a time chart by clicking "create time chart" menu in the query view
4.save the time chart

The question is that the saved time chart doesn't display under "chart" menu

So I digged the source code v14.1:

In QueryView.java of query module, time chart is not accepted.

        public boolean accept(String type, String label)
        {
            if (RReport.TYPE.equals(type)) return true;
            if (QueryReport.TYPE.equals(type)) return true;
            if (QuerySnapshotService.TYPE.equals(type)) return true;
            if (CrosstabReport.TYPE.equals(type)) return true;
            if (JavaScriptReport.TYPE.equals(type)) return true;
            if (GenericChartReport.TYPE.equals(type)) return true;
            return ChartQueryReport.TYPE.equals(type);
        }

But in StudyReportUIProvider.java of study module, time chart is accepted.

            public boolean accept(String reportType, String label)
            {
                if (StudyCrosstabReport.TYPE.equals(reportType)) return true;
                if (StudyChartQueryReport.TYPE.equals(reportType)) return true;
                if (ChartReportView.TYPE.equals(reportType)) return true;
                if (StudyRReport.TYPE.equals(reportType)) return true;
                if (ExternalReport.TYPE.equals(reportType)) return true;
                if (QuerySnapshotService.TYPE.equals(reportType)) return true;
                if (StudyQueryReport.TYPE.equals(reportType)) return true;
                if (TimeChartReport.TYPE.equals(reportType)) return true;
                if (JavaScriptReport.TYPE.equals(reportType)) return true;
                if (ParticipantReport.TYPE.equals(reportType)) return true;
                if (GenericChartReport.TYPE.equals(reportType)) return true;
                if (QueryReport.TYPE.equals(reportType)) return true;
                return false;
            }

Could you please tell me what is the difference for time chart handling in these two module?
 
 
jeckels responded:  2014-06-05 15:40
Hello,

Yes, as you've noticed time charts are currently only supported for study datasets. That's because they need to know how to find the date information, align timepoints across participants, and other features that require knowledge of the tables and schemas.

Thanks,
Josh