-
FEATURED COMPONENTS
First time here? Check out the FAQ!
![]() | 1 | initial version | |
am trying to use zkchart for my next project, i understand how i to choose the model of chart of type etc
but every example take data from hardcode line like this:
public class LineBasicData {private static final CategoryModel model;
static
{ model = new DefaultCategoryModel(); model.setValue("Tokyo", "Jan", 7); model.setValue("Tokyo", "Feb", 6); model.setValue("Tokyo", "Mar", 9); model.setValue("Tokyo", "Apr", 14); model.setValue("Tokyo", "May", 18); model.setValue("Tokyo", "Jun", 21); model.setValue("Tokyo", "Jul", 25); model.setValue("Tokyo", "Aug", 26); model.setValue("Tokyo", "Sep", 23); model.setValue("Tokyo", "Oct", 18); model.setValue("Tokyo", "Nov", 13); model.setValue("Tokyo", "Dec", 9);
}
public static CategoryModel getCategoryModel() {
return model;
}
}
any idea how can i fill that line from my database? is arraylist method is doable in here? sorry, am so newb in java
![]() | 2 | No.2 Revision |
am trying to use zkchart for my next project, i understand how i to choose the model of chart of type etc
but every example take data from hardcode line like this:
{ public class LineBasicData {private static final CategoryModel model;
static
{ model = new DefaultCategoryModel(); model.setValue("Tokyo", "Jan", 7); model.setValue("Tokyo", "Feb", 6); model.setValue("Tokyo", "Mar", 9); model.setValue("Tokyo", "Apr", 14); model.setValue("Tokyo", "May", 18); model.setValue("Tokyo", "Jun", 21); model.setValue("Tokyo", "Jul", 25); model.setValue("Tokyo", "Aug", 26); model.setValue("Tokyo", "Sep", 23); model.setValue("Tokyo", "Oct", 18); model.setValue("Tokyo", "Nov", 13); model.setValue("Tokyo", "Dec", 9);
}
public static CategoryModel getCategoryModel() {
return model;
}
}}}
any idea how can i fill that line from my database? is arraylist method is doable in here? sorry, am so newb in java
![]() | 3 | No.3 Revision |
am trying to use zkchart for my next project, i understand how i to choose the model of chart of type etc
but every example take data from hardcode line like this:
{
public class LineBasicData {private static final CategoryModel
}}
any idea how can i fill that line from my database? is arraylist method is doable in here? sorry, am so newb in java