Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page properties
Release date

 

Release type

Status
subtletrue
titleMaintenance

Highlights
UI Text Box
typenote

Starting with this version, the Calendar Week parameter is no longer formatted with the default c3.js formatting, that was:

Code Block
languagejs
titlebefore version 1.4.1
WEEK("CW%W") //week formatting - default c3.js

Replaced with this version:

Code Block
languagejs
titlestarting with version 1.4.1
linenumberstrue
collapsetrue
function formatWeek(d)
{
	if (d instanceof Date)
	{
		var momentDate;

		//we need this for checking if the chart is displayed in an iframe (Jira UI) or in a separate window
		var isInIframe = (window === window.parent) ? false : true;

		//use jira moment when available
		if (isInIframe) {
			momentDate = window.parent.moment(d);
		}
		//use included resource for displaying the week in charts to go - requires moment.js as a resource in the JS layout
		else {
			momentDate = moment(d);
		}

		return 'CW' + momentDate.week();
	}
	return '';
}

So if you have scripted charts that are using the Time Picker parameter, please change the layout and add the formatWeek function provided above to it, so that the chart can be properly rendered.



Image Added

Bug fixes

  • The incorrect week is being returned if the Time Period Picker is set to use the week as an input parameter.
  • Charts are not being loaded in some browsers if opened through a link

[2018-02-23] Released xCharts 1.4.0

New features

  • Online help links have been updated to the new xCharts Documentation Site.
  • XCHART-14 - Ability to Copy an existing Chart.
  • Display vertical date lines (grid lines) on chronological charts, configurable via parameters.

Improvements

  • XCHART-16 - Service Desk fields are not displayed nicely when grouping by them.

  • XCHART-17 - Bars should not overlay when displaying larger periods of time.

  • Improved method descriptions in the xCharts-API Javadoc.
  • Preview images for built-in charts on the Chart Templates overview page.
  • Show "Edit" button directly in the chart browser.
  • Display useful information in "Time in Status" chart when grouping by "None".
  • Numbers in Charts are formatted according to the user's locale.
  • Added two templates to choose from when creating a Chart Data or Chart Layout Script.
  • Remove "Please vote for this feature" message from the Charts page in the project overview.

Bug fixes

...

XCHART-15 - Time period value not preserved while editing Time Frame Chart.

...

  • .