Why no graph on Garmin Connect from my Beta App?

I like to record data into the FIT and show them in graph. The related codes below.

I see the data's in the FIT file (with fitviewer) and also with the Garmin's Monkey graph. The app in the store in beta status, the setting is working well but not the graph. I am officialy out of ideas , maybe someone found the problem in my code or have idea, what is wrong. I think I dig enough without step forward.

I do not like to make a public version yet, so that is the last step that I wanna try.

The XML file:

<fitContributions>
    <fitField id="0" displayInChart="true" sortOrder="0" precision="0"
    chartTitle="@Strings.fitChartTitle0" dataLabel="@Strings.fitDataLabel0"
    unitLabel="@Strings.fitUnitLabel0" fillColor="#00ff37" />

    <fitField id="1" displayInChart="true" sortOrder="1" precision="2"
    chartTitle="@Strings.fitChartTitle1" dataLabel="@Strings.fitDataLabel1"
    unitLabel="@Strings.fitUnitLabel1" fillColor="#ff00c8" />
</fitContributions>

The AppView

_fitGears = createField(
    WatchUi.loadResource(Rez.Strings.fitChartTitle0).toString(),
    0, FitContributor.DATA_TYPE_UINT32,
    {
        :mesgType => FitContributor.MESG_TYPE_RECORD,
        :units => WatchUi.loadResource(Rez.Strings.fitUnitLabel0).toString(),
    }
);
_fitRatio = createField(
    WatchUi.loadResource(Rez.Strings.fitChartTitle1).toString(),
    1, FitContributor.DATA_TYPE_FLOAT,
    {
        :mesgType => FitContributor.MESG_TYPE_RECORD,
        :units => WatchUi.loadResource(Rez.Strings.fitUnitLabel1).toString(),
    }
);
_fitGears.setData(0);
_fitRatio.setData(0.0);

The data is refreshing from compute()

  • Strange, because in all my tests it worked in GC after it has worked in Monkey Graph. And it works in beta releases the same way as in public releases.

    Only thing I would try is to change the first string in createField(): you use the Rez fitChartTitle, but maybe the space in the title makes a problem in GC. Try „Gear_Ratio“ and „Gear_Cogs“ in createField(). No need to have the ChartTitle here.

  • Thanks for the idea, looks you was right. I change all string and start working. Now, I try to found what was the exact problem, but it start to working, so I am happySlight smile