We have an Area chart that shows data for certain dates. The problem is that x-axis date/time labels take more vertical space than the chart itself because it uses the long date format. Is there a way to use the short format instead? The facet field is defined as DateTime field in the datasource. The documentation mentions that it's possible:
but I can't find any examples. Can it be done in SmartGWT 5.1?
The format of the Date labels is fixed by FacetChart. In particular, formatAxisValue() will not be called on values for the x-axis. However, FacetChart uses the global array of abbreviated month names for the time granularities of quarters, months, and weeks, uses the default short time format to format labels for time granularities from minutes to hours, and uses the default time format to format labels for the time granularities of 15 seconds and 30 seconds. The label format can be customized by changing these three formatters.
Comment